Re: relative paths with "require"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg Donald wrote:

> Did you check the open_basedir setting?  That will make php act as you
> described.

We don't have open_basedir set, but our problem is slightly different.  If
you were to execute only a.php in my previous example, there would be no
error since the current directory would be /test/a.  The problem is, if you
execute index.php and then when index.php requires a.php, a.php will be
executed with /test as the current directory instead of /test/a.  We have
access to the /test directory.  If you change the link in a.php to
"b/b.php" instead of "../b/b.php", it will work when you execute index.php,
but not when you execute a.php by itself.  

-- 
~Joey Morwick

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux