note 49170 added to function.fwrite
| From: | alex at magickal dot co dot uk | Date: | Tue, 18 Jan 2005 22:34:43 +0000 |
| Subject: | note 49170 added to function.fwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83582@lists.php.net to get a copy of this message | ||
I was troubled for a while both using fputs and fwrite because I wasn't getting a linefeed
despite using \n and \r\n
in the end it turned out to be the quotes. Seems if you use a single quote ' the \n\r is not
interpretted. Only with double quotes does the newline occur...
Though not sure why...
A.
----
Manual Page -- http://www.php.net/manual/en/function.fwrite.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49170
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49170&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49170&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49170&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49170&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49170&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49170&report=yes
Search -- http://master.php.net/manage/user-notes.php