Buffer output and then write it to a file. I do it all the time.
ob_start();
//output some stuff here
$content = ob_get_contents();
ob_end_flush();
if ($handle = fopen("yourfile.html", "w")) {
fwrite($handle, $content);
fclose($handle);
}
-Shawn
"Martin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does somebody know how to get the output of an .php file into an .html
file
> (server side). This in order to cache generated pages for futur visitors.
>
> thanks
>
> Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php