Posted by Scott Noyes on 09/16/05 18:16
> $mypath = "C:/phptestdir/"; > $file = "phpinfo.htm"; > $html_file = fopen("$mypath$file", "w"); > fwrite ($html_file, printf(phpinfo())); > fclose ($html_file); > > How would I accomplish this? ob_start(); phpinfo(); $content = ob_get_clean(); fwrite($html_file, $content);
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming