Results 1 to 2 of 2
Thread: loading image outside www dir
Aug 18, 2006, 16:42 #1
loading image outside www dir
I have a set of images outside the public_html/ directory. But when I try to call them with img src using "../pics/picture.jpg" or even using "/absolute/path/picture.jpg" it wont let me access anything above the public html dir.
So is there any way I could "open" it using like file i/o, then "echo" it into the browser?
Or any other ideas?Need a large site moved (5 GB +)? I can help, PM me for pricing.
[PR 4] Large File Hosting Site looking for link trades
Aug 18, 2006, 17:44 #2
You can't do that directly. But you can use a php script to read the image and output it to the browser:
Last edited by php_daemon; Aug 18, 2006 at 18:35.Saul