Perhaps a stupid question on phpinfo
| From: | Jon | Date: | Fri, 16 Sep 2005 15:07:28 +0000 |
| Subject: | Perhaps a stupid question on phpinfo | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-222527@lists.php.net to get a copy of this message | ||
$mypath = "C:/phptestdir/";
$file = "phpinfo.htm";
$html_file = fopen("$mypath$file", "w");
fwrite ($html_file, printf(phpinfo()));
fclose ($html_file);
How would I accomplish this?
All I get is the "1" that phpinfo succeeded. I want to write the results of
phpinfo to a file. I am sure it is something that I have simply missed but
I am in a bit of a brainfog for some reason.
Thanks All