Re: [PHP] Perhaps a stupid question on phpinfo

2005-09-16 Thread Scott Noyes
> $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); -- PHP General Maili

[PHP] Perhaps a stupid question on phpinfo

2005-09-16 Thread Jon
$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? All I get is the "1" that phpinfo succeeded. I want to write the results of phpinfo to a file. I am sure it is so