Trium918 Posted April 2, 2007 Share Posted April 2, 2007 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. Link to comment https://forums.phpfreaks.com/topic/45336-solved-need-help-with-require_once-function/ Share on other sites More sharing options...
Daniel0 Posted April 2, 2007 Share Posted April 2, 2007 I don't quite understand. Supplying some code might clarify your problem. Link to comment https://forums.phpfreaks.com/topic/45336-solved-need-help-with-require_once-function/#findComment-220162 Share on other sites More sharing options...
rtconner Posted April 2, 2007 Share Posted April 2, 2007 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? Link to comment https://forums.phpfreaks.com/topic/45336-solved-need-help-with-require_once-function/#findComment-220171 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.