note 76909 added to function.fwrite
| From: | cody at apparitiondesigns dot com | Date: | Sun, 05 Aug 2007 02:51:54 +0000 |
| Subject: | note 76909 added to function.fwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129181@lists.php.net to get a copy of this message | ||
In response to below's corrections etc.. make note that special character such as \n and \r are
not recognized as special characters when in the 'single quotes'. You need to use
"double quotes."
So:
replace
if(fwrite($handle,$logMessage.'\r\n')===FALSE)
with
if(fwrite($handle,$logMessage."\r\n")===FALSE)
----
Server IP: 66.207.199.35
Probable Submitter: 207.81.23.155
----
Manual Page -- http://www.php.net/manual/en/function.fwrite.php
Edit -- https://master.php.net/note/edit/76909
Del: integrated -- https://master.php.net/note/delete/76909/integrated
Del: useless -- https://master.php.net/note/delete/76909/useless
Del: bad code -- https://master.php.net/note/delete/76909/bad+code
Del: spam -- https://master.php.net/note/delete/76909/spam
Del: non-english -- https://master.php.net/note/delete/76909/non-english
Del: in docs -- https://master.php.net/note/delete/76909/in+docs
Del: other reasons-- https://master.php.net/note/delete/76909
Reject -- https://master.php.net/note/reject/76909
Search -- https://master.php.net/manage/user-notes.php