note 56079 added to function.fpassthru
| From: | jasper at bryant-greene dot name | Date: | Mon, 22 Aug 2005 22:38:44 +0000 |
| Subject: | note 56079 added to function.fpassthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94053@lists.php.net to get a copy of this message | ||
Error in docs -- this:
// open the file in a binary mode
$name = ".\public\dev\img\ok.png";
should be:
// open the file in a binary mode
$name = ".\\public\\dev\\img\\ok.png";
It is only by chance that the path used doesn't contain special characters after the backslash
(like "\n" and "\r") and it is sloppy programming to not escape the backslashes.
----
Manual Page -- http://www.php.net/manual/en/function.fpassthru.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56079
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56079&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56079&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56079&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56079&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56079&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56079&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56079&report=yes
Search -- http://master.php.net/manage/user-notes.php