Re: ploblem with safe_mode_include_dir

From: Date: Mon, 11 Mar 2002 11:26:34 +0000
Subject: Re: ploblem with safe_mode_include_dir
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87993@lists.php.net to get a copy of this message
Dear Rasmus, I must be wrong, because fetching the cvs I found an entry in the Chanlog file 2002-02-01 James E. Flemer <jflemer@acm.jhu.edu> * main/fopen_wrappers.c
    main/fopen_wrappers.h:
Changed php.ini directive 'safe_mode_include_dir' to accept a (semi)colon separated path, rather than a single directory. Also moved checking of said path into a separate path for code readability. Which led me to think that such parameter would enable php scripts with an open_base_dir setting to access a separate "include_path" so system wide libraries would not need to be duplicated in every VirtualDomain hosted. Can you help me out with this ? Rasmus Lerdorf wrote:
There is no such feature. On Mon, 4 Mar 2002, Renato Lins wrote:
Sorry, I may not haven been clear. What should I do to include from a safe area (/myuser/safe) when I have open_basedir set to other path (/myuser/public_html) ? Rasmus Lerdorf wrote:
open_basedir doesn't take a list of paths. On Mon, 4 Mar 2002, Renato Lins wrote:
Some one can help me. Why this is not working ? # apache conf <Directory /myuser/public_html/> php_admin_flag safe_mode on php_admin_value safe_mode_include_dir "/myuser/safe/" php_admin_value doc_root "/myuser/public_html/" php_admin_value open_basedir "/myuser/public_html/:/tmp/" </Directory> #cat /myuser/public_html/x2.php <?php echo 'Current PHP version: ' . phpversion()."<BR>"; require("/myuser/safe/x4.php"); echo "I am in x2<br>" ?> #cat /myuser/safe/x4.php <?php echo "I am in X4<br>" ?> #browser result Current PHP version: 4.2.0-dev *Warning*: open_basedir restriction in effect. File is in wrong directory in */myuser/public_html/x1.php* on line 2 *Fatal error*: Failed opening required '/myuser/safe/x4.php' (include_path='') in */home/rlins/public_html/x1.php* on line 2


« previous php.general (#87993) next »