[Php-it] "logs/log." . date('d-m-Y H:i:s') . ".txt"

Alessandro Marinuzzi alecosnet at inwind.it
Tue Dec 19 12:42:52 CET 2006


Ciao volevo creare un log del genere ma non funziona:

@mkdir("logs/");
$text = @fopen("logs/log." . date('d-m-Y H:i:s') . ".txt", "w+");
$logs .= "Date: " . date('d-m-Y H:i:s') . $eol;
$logs .= "To: $mail" . $eol;
$logs .= $headers . $eol;
$logs .= "Subject: $subject" . $eol;
$logs .= "Message: $message" . $eol;
fwrite($text, $logs);
fclose($text);

Sembra che fwrite non ne voglia sapere e nemmeno fclose. Qualche idea?


-- 
Alessandro Marinuzzi
---------------------
http://www.alecos.it/
---------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ziobudda.net/pipermail/php-it/attachments/20061219/30c10efd/attachment.htm


More information about the Php-it mailing list