Save PHPInfo to file
Saves the phpinfo() page to an file
function PHPInfo2File($target_file){
ob_start();
phpinfo();
$info = ob_get_contents();
ob_end_clean();
$fp = fopen($target_file, "w+");
fwrite($fp, $info);
fclose($fp);
}
//Example:
PHPInfo2File('info.html');
Url: http://www.jonasjohn.de/snippets/php/phpinfo2file.htm
Language: PHP | User: ShareMySnippets | Created: Oct 16, 2013