Re: failing call to db libraries

From: Date: Mon, 22 Jul 2002 19:04:50 +0000
Subject: Re: failing call to db libraries
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1958@lists.php.net to get a copy of this message
Alexander Carberry wrote:
I'm running a script based on the pear db libraries that works perfectly on my local linux box but refuses to play ball on one particular remote linux server. this is the offending line --> require_once($this->pear_lib); //this is the call to the pear db libraries $this->pear_lib has previously been defined as --> var $pear_lib = 'DB.php'; this is the error message --> Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/worldnet-live.com/httpdocs/classes/core/dbase_mod.php on line 103 Fatal error: Failed opening required 'DB.php' (include_path='.:/usr/lib/php') in /home/httpd/vhosts/worldnet-live.com/httpdocs/classes/core/dbase_mod.php on line 103 Have any of you encountered this before? And precisely what is going on? Yours Alex
If any of you are experiencing the same type of problem it has to do with safe_mode being set when php is installed and the base_dir directive disallowing access to all files and resources outside of your base directory. Some ISP's seem to use this as a security precaution in shared hosting environments rather than attempting to achieve the same via Apache or by hacking the OS. Alex

« previous php.pear.general (#1958) next »