Navigation :

Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




Site Sponsors :

Bookmark :

Links :

programmershelp
finance products
wwwstores

Downloads :

Misc :

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


PHPInfo to a log file

This example will log the output from phpinfo into a text file

<?php
function LogPHPInfo($logfile)
{
ob_start();
phpinfo();
$contents = ob_get_contents();
ob_end_clean();

//open file
$fp = fopen($logfile, "w+");
//copy $contents to file
fwrite($fp, $contents);
fclose($fp);
}

?>

<?
LogPHPInfo("phpinfo.txt");
?>