Re: Perhaps a stupid question on phpinfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> $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 Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux