Jump to content

save all page output to a string.


drifter

Recommended Posts

sure instead of echoing out your stuff, store it in a variable

example:
instead of
[code]echo "<td>some date here</td>";[/code]

use
[code]
$html = "";
$html .= "<td>some data here</td>\n";[/code]

So everytime you want to store date in the $html you cal it as $html .=

then if you want to same it you can just write it to a file or store it by calling $html

Ray
Well I found this -

$output=ob_get_contents();
ob_flush();

not sure if is saves error messages yet.

Also - the file_get_contents gave me an idea - break my page into server and call them using file_get_contents to get the result back... may work too.

as far as $html .= - I need the error messages as well if possible

Thanks guys

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.