note 78594 deleted from function.fwrite by tularis

From: Date: Thu, 18 Oct 2007 15:48:44 +0000
Subject: note 78594 deleted from function.fwrite by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-131506@lists.php.net to get a copy of this message
Note Submitter: btrivers at peistuffonline dot com Reason: useless ---- I have found that even putting \n and \r in singe vs. double quotes did not work for me. So I used the chr() function to convert the ascii decimal values to the characters (/r=13, /n=10): So instead of '\r\n' or "\r\n" on the Windows platform to get a new line I use: chr(13).chr(10) Using a example from a note below, instead of: if(fwrite($handle,$logMessage.'\r\n')===FALSE) use if(fwrite($handle,$logMessage.chr(13).chr(10))===FALSE)

« previous php.notes (#131506) next »