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" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]] > Sent: Tuesday, February 19, 2002 10:44 AM > To: [EMAIL PROTECTED]; > [EMAIL PROTECTED] > 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php