note 44396 added to function.readfile
| From: | tbartels at cranemorley dot com | Date: | Wed, 04 Aug 2004 17:29:48 +0000 |
| Subject: | note 44396 added to function.readfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73940@lists.php.net to get a copy of this message | ||
For some reason using <? @readfile() ?> to do a force-download of an us-ascii text file
prepends a single newline <? "\n" ?> to the stream. I haven't figured out if
it is a bug or what to use alternately but if you have content that has critical formatting on the
first line, know that using this method will give you an extra line at the top of the file.
----
Manual Page -- http://www.php.net/manual/en/function.readfile.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44396
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44396&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44396&report=yes
Search -- http://master.php.net/manage/user-notes.php