Re: Re: A general problem

From: Date: Tue, 31 Aug 2004 00:16:24 +0000
Subject: Re: Re: A general problem
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14342@lists.php.net to get a copy of this message
Matthew Weier O'Phinney wrote:
Looks to me like you need to do the following:
    set_include_path(get_include_path() . ':' . './auth');
    include_once('Auth/Auth.php');
That first line appends the directory 'auth' in the current directory to the path list in which PHP looks for include files. This will allow the factory method in Auth to find its classes.
Hmmm... if you have a proper PEAR installation you don't need to do such tricks. Make sure your PEAR root directory is in echo ini_get('include_path'); and that you really used the installer to install the packages, instead of manually installing them. Additionally, check this section of the manual http://pear.php.net/manual/en/installation.php and tell us if you need more help. -- Regards, Norbert Mocsnik http://norbert.mocsnik.hu/

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