Jump to content

Recommended Posts

I have three files called index.php,output_fns.php,

and php_fns.php. The php_fns contains all of the

require function that links every page to one another.

the output_fns.php contains many functions that will

be displayed different pages. The index.php just have

two functions it. One connects to the php_fns and the

other calles a function from output_fns.php.

 

The problem is that I want the data inside the output_fns.php

to display inside of the body tag when it is called by index.php.

 

Example: Click Here And view source.

 

If you just want to include something and print its data later, you can do this..

 

(From the php manual)

<?php

$foo = include 'return.php';

echo $foo; // prints 'PHP'

$bar = include 'noreturn.php';

echo $bar; // prints 1

?>

 

Otherwise... why can't you just move the include call to be within the body tags?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.