Re: Capturing phpinfo()

From: Date: Wed, 24 Nov 2004 20:13:47 +0000
Subject: Re: Capturing phpinfo()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202794@lists.php.net to get a copy of this message
"Ashley M. Kirchner" <ashley@pcraft.com> wrote in message news:41A3D239.9060605@pcraft.com... > > How can I stick phpinfo() at the bottom of a page in such a way that > it doesn't display the data in the page, but instead creates a log file > and dumps everything in there) The log file should either be appended > to every time, or if not, a unique one created every time (one per > transaction.) Is this even possible? you can use ob_ (output buffering ) familiy of functions to capture result of phpinfo() in string, instead of outputig it to browser. Saving that string into file is left as an excercise for reader ;) rush -- http://www.templatetamer.com/ http://www.folderscavenger.com/

« previous php.general (#202794) next »