--- Steve Marquez <[EMAIL PROTECTED]> wrote: > Is there a way to have PHP write an HTML file?
Sure. This is no different from writing any other file. If you want it to write a file instead of outputting the content, a convenient way (my opinion) of doing this is to use ob_start() at the top of your script, and then do something like this at the very end: $html = ob_get_contents(); $fp = fopen('./foo.html', 'w'); fwrite($fp, $html); fclose($fp); Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php