I am trying to get my php script to display an image from a directory from
other than the webservers root directory
This doesnt work:
header('Content-Type: image/jpg');
readfile("/blah/foo bar/pic.jpg");
But this does:
header('Content-Type: image/jpg');
readfile("/blah/pic.jpg");
I am guessing it is the space that is messing it up. I tried to escape the
spaces with '\' like in Linux or %20 but they dont seem to help. I dont
want to have to change the space to something like an underscore becasue
then I'd have to change about 300 directories. Is there anyway to make this
work?
If anyone has any ideas I would greaty appreciate them.