In article <2p************@uni-berlin.de>,
Tim Van Wassenhove <eu**@pi.be> wrote:
In article <41***********************@news.euronet.nl>, Janwillem Borleffs
wrote: NotGiven wrote: My hosting company has pre-intalled PEAR in a directory out of the web
directory (and not in php-includes).
I've tried including the absolute /to/path/ in the requre statement
but it does not work.
How would I access the PEAR packages?
Check the open_basedir directive in the php.ini file. Chances are that it
doesn't include the path to the PEAR installation.
When this is the case and you are unable to edit the php.ini file yourself,
all you can do is asking your hosting provider to include this path.
or use http://www.php.net/ini_set
I followed the instructions in PROGRAMMING IN PHP to access the PEAR DB
class, but my web hosting ISP's php configuration didn't allow it. Just
using the
require_once("DB.php");
would fail, even though the php variable include_path was set correctly
in the php.ini file. For some reason, the require will _work_ if I
include the following _before_ the require:
ini_set('include_path', ini_get('include_path')); # lets PEAR work
Why is this required? This is php 4.3. Is there some internal bug that
doesn't correctly access the include_path until it's "set" by ini_set?
I didn't see anything in the docs on
http://www.php.net
--
DeeDee, don't press that button! DeeDee! NO! Dee...