Jump to content

Archived

This topic is now archived and is closed to further replies.

cgarlick

base directory problem

Recommended Posts

I am haveing a problem with ./ and ../.

Both are not saying
EX:/var/www/ai/mydomain.com/web/

php acts like its just reading it as part of the directory...

like this..
EX:Warning: main(../moduels/Roster/settings.php): failed to open stream: No such file or directory

The file is in :/var/www/ai/mydomain.com/web/moduels/Roster/settings.php
and if I state this it works for that instance...

I have read a bit about open_basedir but if I try to set it with htaccess it breaks htaccess.

http://www.avatarhero.com/modules/Roster/install.php?mode=phpinfo

Thanks for any help and let me know if you have any questions.

Claude

Share this post


Link to post
Share on other sites
what are you using to express the path?  single quotes will not translate the path, so maybe try using double quotes to enclose the filename/path.  either way, seeing some code might help.

Share this post


Link to post
Share on other sites
then try using double quotes, as i'd said:

[code]require_once( "../moduels/Roster/settings.php" );[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.