Forum Moderators: coopster

Message Too Old, No Replies

include alternative

         

webfoo

12:49 am on Mar 28, 2009 (gmt 0)

10+ Year Member



On a seperate issue, I have a PHP page that works fine. I have another page that I'd like to include that page into AFTER the first page has been executed. I tried using the PHP include and the Apache include functions, but neither worked. Suggestions ?

webfoo

7:25 pm on Mar 28, 2009 (gmt 0)

10+ Year Member



Maybe I need to explain this a little better.

I have about 7 HTML pages on a site. Each one of them needs to include the output of a PHP file, based on a URL variable. I need a way of including the PHP file after it has been executed. So for exammple:

-- file.html --
<html>
<head></head>
<body>

Some stuff.

Need to include 'file.php?var=value' here AFTER after file.php has executed.

</body>
</html>

coopster

10:57 pm on Mar 28, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sounds like a job requiring output buffering [php.net].