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

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

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)
Options: ReplyQuote
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) ;)
Options: ReplyQuote
Posted by: Grom
September 10, 2010 02:46AM
Thanks a lot, it works :-)
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.