introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.
-->

Cannot access file out of "/www" by a php script



Posted by: Grom
September 05, 2010 10:57PM
Hi!

I post my problem here because i can't find the solution :(

I tried to make a Php script which works like a picture gallery.
I made it in my /www local directory but i left all of the pictures in "My Pictures". (So, my pictures are in "C:\Users\Me\Pictures" and the script is in "C:\Program Files\EasyPHP-5.3.3\www")

First, i tried to list the directory content, it worked. So i tried to display the pictures but it doesn't work :(
If i put the relative path, the picture is just a "red cross" (the one like "the picture can't be displayed") and if i put the absolute path, the picture is just like before but with the generic image-icon (the one like "there is a picture here but i don't want to show you" ^^)

I tried to put my php-script in "My pictures" and call it by an include() from the "/www" but the result is the same.

I don't know waht i can do...

Thanks for your answers.

(Sorry for my english :$)

(My configuration is easyPHP 5.3.3 in Vista 32bits with Firefox and IE)
Posted by: Amour
September 06, 2010 06:53AM
If you want to use pictures from another path, you can create an alias (via EasyPHP Administration) ;)
Posted by: Grom
September 10, 2010 02:46AM
Thanks a lot, it works :-)