Re: include_path problem and PEAR DB

From: Date: Thu, 29 Sep 2005 21:23:52 +0000
Subject: Re: include_path problem and PEAR DB
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21158@lists.php.net to get a copy of this message
> -----Original Message----- > From: Justin Patrin [mailto:papercrane@gmail.com] > Sent: Wednesday, September 28, 2005 09:48 PM > To: 'Steve Harp' > Cc: pear-general@lists.php.net > Subject: Re: [PEAR] include_path problem and PEAR DB > > 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. > The correct php.ini is shows in the info and that php.ini has the correct include_path. In fact, that php.ini has no reference to C:\php5 anywhere and the C:\php5 folder doesn't even exist on my machine. Steve

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