Re: [PHP] Showing an image outside of the web folder

2006-05-05 Thread Rabin Vincent
On 5/5/06, James Nunnerley <[EMAIL PROTECTED]> wrote: Doing a "readfile ($file_location)" outputs the binary... can someone point me in the direction of being able to translate that binary into a viewable image file? Drop the appropriate content-type header: header('Content-type: image/png');

Re: [PHP] Showing an image outside of the web folder

2006-05-05 Thread John Nichel
James Nunnerley wrote: I'm creating a file manager application, from which I want the user to be able to edit/view files. On the text side of things, it's pretty easy, however from the image side of things, I'm not sure how to allow the user to view files outside of the web folder. Doing a "rea

[PHP] Showing an image outside of the web folder

2006-05-05 Thread James Nunnerley
I'm creating a file manager application, from which I want the user to be able to edit/view files. On the text side of things, it's pretty easy, however from the image side of things, I'm not sure how to allow the user to view files outside of the web folder. Doing a "readfile ($file_location)" o