hello!
use output buffering...
<?php
ob_start();
//... your code here
$_contents = ob_get_contents();
ob_end_clean();
?>
regards,
m.
Maris wrote:
Hi!
Let's say my index.php consists of the following:
<? include("header.inc"); echo "<p>PHP says Hello World</p>"; ?>
<p>HTML says Hello World</p>
<? //.. some other php code that generates output... ?>
..some other HMTL output..
My question is:
how can I make the whole index.php generated output put in one PHP variable?
It is also important that it is done from the same index.php file.
Thanks,
Maris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php