Re: saving to a file.
| From: | Tim McGuire | Date: | Fri, 08 Sep 2000 20:21:44 +0000 |
| Subject: | Re: saving to a file. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15935@lists.php.net to get a copy of this message | ||
here is one example of writing to a file:
<?
$thefile = fopen("AreaList.html","w");
$filestring = "<HTML><HEAD><TITLE>AREA LIST</TITLE></HEAD>";
$filestring .= "<BODY> <h3>THIS IS THE AREA LIST</h3> ";
$filestring .= "<TABLE>BLAH BLAH ALL YOUR OUTPUT GOES
HERE</TABLE></body>";
$filestring .= "</HTML>";
fwrite($thefile,$filestring);
?>
>>> "Michael" <rhuian@noxordo.com> 09/08/00 02:29PM >>>
I've got php code that displays in a web page just fine. How do I go about
saving what is displayed to a file, as well as or rahter than printing it to
the screen?
thanks.
Michael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net