Re: safe_mode and inclusion of files don't work as documented
| From: | hack988 hack988 | Date: | Fri, 28 Aug 2009 10:39:51 +0000 |
| Subject: | Re: safe_mode and inclusion of files don't work as documented | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297402@lists.php.net to get a copy of this message | ||
add this
php_admin_value open_basedir
2009/8/28 Nico Sabbi <nsabbi@officinedigitali.it>:
> 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
>
>