Shawn McKenzie 18 December 2003 09:14:58 [ permanent link ]
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" <maus@wanadoo.fr> wrote in message news:20031218031849.73819.qmail@pb1.pair.com...> 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.>
If you would like to report an abuse of our service, such as a spam message, please . Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .