Save PHPInfo to file
Saves the phpinfo() page to an file
Author:
Jonas John
License:
Public Domain
Language:
PHP
Created:
05/09/2006
Updated:
05/09/2006
Tags:
environment, debug, system, basics
function PHPInfo2File($target_file){ ob_start(); phpinfo(); $info = ob_get_contents(); ob_end_clean(); $fp = fopen($target_file, "w+"); fwrite($fp, $info); fclose($fp); }
PHPInfo2File('info.html');
Feel free to leave a message:
Add a comment