Re: [PHP] Problem with readfile on jpegs

2003-02-24 Thread Rick Emery
Show us code. The error refers to line 87. We need to see that, and other code surrounding 87. - Original Message - From: "Patrick Teague" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 6:45 AM Subject: [PHP] Problem with readfile on j

Re: [PHP] Problem with readfile on jpegs

2003-02-24 Thread Ernest E Vogelsinger
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 _ex

[PHP] Problem with readfile on jpegs

2003-02-24 Thread Patrick Teague
I found info on php.net about how to set content type for a file & then cause it to be a downloaded file. So far it's been working for showing everything until I tried having it display a jpeg. Here's the code I have - header("Content-type: ".$atype); readfile(include($afile)); The only problem