note 66118 added to function.fwrite

From: Date: Mon, 15 May 2006 08:23:57 +0000
Subject: note 66118 added to function.fwrite
Groups: php.notes 
Request: Send a blank email to php-notes+get-111303@lists.php.net to get a copy of this message
new line problems when writing to a text file? try using double quotes instead of single. i.e. i.e. $newdata= $textstring . "\r\n"; fwrite($fp,$newdata); instead of $newdata= $textstring . '\r\n'; fwrite($fp,$newdata); which - for me at least - just puts a literal \r\n at the end of the line ---- Server IP: 84.18.202.180 Probable Submitter: 82.39.123.75 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.fwrite.php Edit -- http://master.php.net/note/edit/66118 Del: integrated -- http://master.php.net/note/delete/66118/integrated Del: useless -- http://master.php.net/note/delete/66118/useless Del: bad code -- http://master.php.net/note/delete/66118/bad+code Del: spam -- http://master.php.net/note/delete/66118/spam Del: non-english -- http://master.php.net/note/delete/66118/non-english Del: in docs -- http://master.php.net/note/delete/66118/in+docs Del: other reasons-- http://master.php.net/note/delete/66118 Reject -- http://master.php.net/note/reject/66118 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111303) next »