Re: redirect phpinfo output

From: Date: Fri, 28 Dec 2001 17:44:27 +0000
Subject: Re: redirect phpinfo output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78958@lists.php.net to get a copy of this message
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 " <charlesk@netgaintechnology.com> To: <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#78958) next »