Re: RE: [PHP] Dynamic file creation in Win NT4.
| From: | Christoph Grottolo | Date: | Thu, 21 Feb 2002 10:52:11 +0000 |
| Subject: | Re: RE: [PHP] Dynamic file creation in Win NT4. | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12178@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
| That's all folks :-)
it's even easier:
$logFile="c\\mylogdirectory\\" .date("Ymd").".log";
error_log ("what i want to write", 3, $logFile);
Christoph