note 95031 added to function.error-log
| From: | SmokeyDaBandit at osu1 dot php dot net | Date: | Wed, 09 Dec 2009 21:29:50 +0000 |
| Subject: | note 95031 added to function.error-log | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163775@lists.php.net to get a copy of this message | ||
This had me hunting for a while till I figured this out. What ever folder you want your logs
deposited to, don't create the log file yourself, let php do it for you. For some reason, if
the log file already exists and it's 0 KB, PHP will try to re-create the log file and fail in
the process. It never attempts to write to the pre-existing empty file, just fails on folder
creation. Might be do to the folder permissions I have on windows, but this is what I found with
read/write/modify permissions for IIS_IUSRS on Win2008. Once PHP has written to its self-created
file successfully, it will append to the file on new errors. Process Monitor is my friend :)
----
Server IP: 69.147.83.197
Probable Submitter: 67.93.23.130
----
Manual Page -- http://www.php.net/manual/en/function.error-log.php
Edit -- https://master.php.net/note/edit/95031
Del: integrated -- https://master.php.net/note/delete/95031/integrated
Del: useless -- https://master.php.net/note/delete/95031/useless
Del: bad code -- https://master.php.net/note/delete/95031/bad+code
Del: spam -- https://master.php.net/note/delete/95031/spam
Del: non-english -- https://master.php.net/note/delete/95031/non-english
Del: in docs -- https://master.php.net/note/delete/95031/in+docs
Del: other reasons-- https://master.php.net/note/delete/95031
Reject -- https://master.php.net/note/reject/95031
Search -- https://master.php.net/manage/user-notes.php