Re: create HTML page on the fly
| From: | Angelo Zanetti | Date: | Wed, 26 Oct 2005 02:02:29 +0000 |
| Subject: | Re: create HTML page on the fly | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224640@lists.php.net to get a copy of this message | ||
thanks guys, bruce's answer was what I was looking for.
regards
Angelo
David Tulloh wrote:
Angelo Zanetti wrote:... I assume that I will use fwrite() to add the HTML to the file, I need to know how to actually create the file before adding the content to it.You need to open the file before you can write to it, you do that using fopen(). You can choose to create a file or modify an existing on by using the fopen mode flags. The different flags are outlined in the documentation, I think you will be wanting to use 'w'. David