Re: Showing an image outside of the web folder
| From: | John Nichel | Date: | Fri, 05 May 2006 14:38:56 +0000 |
| Subject: | Re: Showing an image outside of the web folder | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235645@lists.php.net to get a copy of this message | ||
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 "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? Cheers NunnersPHP Manual -> Function Reference -> Image Functions Google -> php display image <IMO> It's easier to say RTFM and/or STFW </IMO> -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 jnichel@dotcomholdingsofbuffalo.com