[thelist] PHP to make static web pages

Nicole Parrot nicole at parrot.ca
Sat Feb 16 10:07:01 CST 2002


> This is an odd request, but I have my reasons.

It's not an odd request at all.

> a PHP script that generates flat html files complete with links and

You do exactly as usual, except that you write to a file, instead of writing
to the screen.

check the following functiongs:
fopen(), fwrite(), fclose()

Alternatively, you can run your "normal" PHP code from the command line, and
redirect your output to a file

>php mycode.php > mycode.html






More information about the thelist mailing list