buffer the output of phpinfo() using ob_start() then get the buffer using ob_get_contents() and store it in your new html file using fwrite() hope this helps R'twick ----- Original Message ----- From: "charlesk " <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 28, 2001 12:15 PM Subject: [PHP] redirect phpinfo output
> How can I redirect the output from phpinfo to a file. > If I try > error_log(phpinfo(),3,"z:\\".date("YmdHis").".html"); > > all that is in the file is the number 1. > > The output gets sent to the user. > > Charles Killmer > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]