Re: Problem with readfile on jpegs
| From: | Ernest E Vogelsinger | Date: | Mon, 24 Feb 2003 12:52:10 +0000 |
| Subject: | Re: Problem with readfile on jpegs | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136891@lists.php.net to get a copy of this message | ||
At 13:45 24.02.2003, Patrick Teague said:
--------------------[snip]--------------------
>readfile(include($afile));
--------------------[snip]--------------------
You don't need to include the file you're going to read... simply give
readfile($file)
and you'll be set.
include() tries to _execute_ the file as PHP code, and chokes at the binary
data.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/