add this php_admin_value open_basedir 2009/8/28 Nico Sabbi <nsabbi@xxxxxxxxxxxxxxxxxxx>: > Hi, > I'm testing one of my sites in safe_mode, but I'm experiencing some > strangeness that is not documented. > > The settings are: > in php.ini: > include_path = > ".:/server/home/apache/php4/:/var/php/5.2/pear/:/usr/php/lib/ezcomponents-2008.2.2/" > > in the virtualhost config: > php_admin_value safe_mode On > php_admin_value safe_mode_include_dir > "/server/home/nsabbi:/server/home/apache/php4:.:.." > > The files belong entirely to apache:apache, the user who is running apache. > The problem is: > > > *Fatal error*: require_once() [function.require > <http://nsabbi/login/function.require>]: Failed opening required > '../include.php' > (include_path='.:..:/server/home/apache/php4/:/var/php/5.2/pear/:/usr/php/lib/ezcomponents-2008.2.2/') > in */server/home/nsabbi/nb4/login/index.php* on line *3 > > How is it that i can't include files in .. ???? > btw, can I redefine the include_path in safe mode? > > Thanks, > Nico > * > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php