Re: RE: [PHP] Dynamic file creation in Win NT4.

From: Date: Tue, 19 Feb 2002 18:41:56 +0000
Subject: Re: RE: [PHP] Dynamic file creation in Win NT4.
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12151@lists.php.net to get a copy of this message
It's as easy as... :-) $day = getdate(time()); $f_name = create table name on time basis; $fd = fopen($f_name, "a"); // open file fwrite($fd, "string you want tu put (add) into file"); // write to file all your data fclose($fd); // close the file This will create your file and then append all your info. See the manual for above functions. That's all folks :-) HTH Piotr --- "Hunter, Ray" <rhunter@enterasys.com> wrote: > You need to make sure that php has the correct > permissions to access the > directory and write the file that you want it to > write too... > > Check out the manual for this... > > Ray Hunter > Firmware Engineer > > ENTERASYS NETWORKS > > > -----Original Message----- > From: Sridhar Moparthy > [mailto:sridhar.moparthy@wcom.com] > Sent: Tuesday, February 19, 2002 10:44 AM > To: php-general@lists.php.net; > php-windows@lists.php.net > Subject: [PHP] Dynamic file creation in Win NT4. > > > Hi All, > > Could you please help me on how to create a file > dynamically on the server > in PHP. I wanted to open a new file for each day to > save all the errors > generated by different web pages on that day. > > I am using PHP 4.1.6 on, Win NT4 and IIS . > > Thank you in advance! > Sridhar Moparthy > > > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com

« previous php.windows (#12151) next »