Re: create HTML page on the fly

From: Date: Tue, 25 Oct 2005 15:37:54 +0000
Subject: Re: create HTML page on the fly
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-224641@lists.php.net to get a copy of this message
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

« previous php.general (#224641) next »