Page 1 of 1

Content folder via absolute path/url?

Posted: 08 Oct 2006, 12:43
by Pallieter
I need to have my content folder at ../../www/gallery/ (meaning relative from the ImageVueX dir). How to do this?

Posted: 08 Oct 2006, 22:20
by mjau-mjau
I need to have my content folder at ../../www/gallery/ (meaning relative from the ImageVueX dir). How to do this?
You mean you want your contentfolder outside the Imagevue folder?

If your Imagevue folder is at "site.com/imagevue/" and your contentfolder is at "site.com/content/", you could set in config:
Code
contentfolder = ../content/
or in URL parameter:
Code
?contentfolder=../content/
As you can see, relative to main Imagevue folder. However, I need to warn you that working with content outside the main Imagevue folder is a little dodgy. We discussed this as of lately, and some servers wont even support this procedure as it is considered 'unsafe' for a script to access files on a parent level. Like most other galleries, we might require any content to be within the main Imagevue folder in future versions.

Posted: 09 Oct 2006, 04:47
by DELETED
DELETED

Posted: 09 Oct 2006, 05:35
by mjau-mjau
What do you mean you "will" have? Why would you put the admin in a separate folder from main Imagevue folder? This is a webapplication and you cant spread the files around in separate folders. Why do you think the admin to this forum is under admin/?

Have you heard of BASE DIR restriction?

Also, Im not saying it doesnt work, because it does: https://www.photo.gallery/imagevue/slide ... mage=false
But only if your server doesnt have base dir restriction. If you check other gallery software out there, you will see that the same rules apply.

Posted: 09 Oct 2006, 06:03
by DELETED
DELETED