Re: [PHP] writing a binary file to a browser

2001-01-21 Thread Toby Butzon
Might want to check out fpassthru (http://www.php.net/fpassthru). Good luck - --Toby - Original Message - From: "Mike Chambers" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 22, 2001 12:20 AM Subject: [PHP] writing a binary file to a browser

[PHP] writing a binary file to a browser

2001-01-21 Thread Mike Chambers
I am trying to open a binary file from a URL, and then send that file back to the user's browser (after setting the appropriate content-type). I think i have a handle on how to open the file : using either fread() or file() however, i am not sure how to iterate through the bytes, get the file s