note 35166 added to function.fwrite

From: Date: Thu, 21 Aug 2003 20:04:53 +0000
Subject: note 35166 added to function.fwrite
Groups: php.notes 
Request: Send a blank email to php-notes+get-54836@lists.php.net to get a copy of this message
Hope this helps other newbies. If you are writing data to a txt file on a windows system and need a line break. use \r\n . This will write hex OD OA. i.e. $batch_data= "some data... \r\n"; fwrite($fbatch,$batch_data); The is the equivalent of opening a txt file in notepad pressing enter and the end of the line and saving it. ---- Manual Page -- http://www.php.net/manual/en/function.fwrite.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35166 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35166&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35166&report=yes

« previous php.notes (#54836) next »