Re: include_path problem and PEAR DB

From: Date: Wed, 28 Sep 2005 21:48:56 +0000
Subject: Re: include_path problem and PEAR DB
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21140@lists.php.net to get a copy of this message
On 9/28/05, Steve Harp <kilroy@harpservices.com> wrote: > Hi All, > > I'm running PHP5 on Windows XP/Pro with Apache 1.3.33. The > include_path in my php.ini is set to: > > include_path=".;C:\PHP\pear;C:\php\ext;C:\PHP\Smarty-2.6.9\libs;C:\PHP\PEAR\pear" > > When I use require_once('DB.php'); in my php scripts, I get an error > //////////////////////////////////////////////////////////// > "<b>Fatal error</b>: main() [<a > href='function.require'>function.require</a>]: Failed opening required > 'DB.php' (include_path='.;C:\php5\pear') in <b>C:\Program > Files\Apache > Group\Apache\htdocs\private_stuff\database.phpm</b> on line > <b>4</b><br /> > ////////////////////////////////////////////////////////// > Note that the error says the file can't be found in the > include_path=C:\php5\pear. I've searched my drive for other php.ini > files and searched the registry for a reference to C:\php5 and can't > find one. My php.ini's include_path is set correctly. Where could > this php5 path be coming from? No such folder exists on my computer. > Sounds like your php.ini isn't being read at all. Run phpinfo() and see what php.ini it lists. -- Justin Patrin

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