note 20756 added to function.fwrite

From: Date: Mon, 15 Apr 2002 13:33:28 +0000
Subject: note 20756 added to function.fwrite
Groups: php.notes 
Request: Send a blank email to php-notes+get-29361@lists.php.net to get a copy of this message
I solved the problem of writing a "newline" understood by windows systems by appending chr(13) and chr(10) (CR/LF) to the string I was adding. $str = "my string".chr(13).chr(10); fwrite($fp, $str, strlen($str)); Hope this helps! --- Fra. -- http://www.php.net/manual/en/function.fwrite.php http://master.php.net/manage/user-notes.php?action=edit+20756 http://master.php.net/manage/user-notes.php?action=delete+20756 http://master.php.net/manage/user-notes.php?action=reject+20756

« previous php.notes (#29361) next »