James Nunnerley schrieb:
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
Nunners


img src="showimage.php?location=\path\to\image.gif"

showimage.php :

readfile("location");

something like that

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to