RE: [PEAR] Re: WELCOME to pear-general@lists.php.net

From: Date: Sat, 07 May 2005 05:32:02 +0000
Subject: RE: [PEAR] Re: WELCOME to pear-general@lists.php.net
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19094@lists.php.net to get a copy of this message
I think I might have figured something out....I've got a path in there using a ';' as a separator, instead of the PATH_SEPARATOR value. I'm running some tests, but that may have fixed my problem. Thanks for helping me in the right direction... Darren Ehlers > -----Original Message----- > From: Greg Beaver [mailto:cellog@php.net] > Sent: Friday, May 06, 2005 11:39 PM > To: darren@ehlersconsulting.net > Cc: pear-general@lists.php.net > Subject: Re: [PEAR] Re: WELCOME to pear-general@lists.php.net > > > Darren Ehlers wrote: > > Here's the result: > > > > string(42) "/usr/local/lib/php" > > Warning: main(MDB2.php) [function.main]: failed to open > stream: No such file > > or directory in /web/dc/html/index.php on line 8 > > > > Fatal error: main() [function.require]: Failed opening > required 'MDB2.php' > > (include_path='/usr/local/lib/php') in /web/dc/index.php on line 8 > > > > The actual code is: > > > > <?php > > ini_set('error_reporting', E_ALL); > > ini_set('display_errors', 1); > > ini_set('display_startup_errors', 1); > > > > var_dump(get_include_path()); > > require_once 'MDB2.php'; > > ?> > > > > When I change it to this, it works fine: > > > > <?php > > ini_set('error_reporting', E_ALL); > > ini_set('display_errors', 1); > > ini_set('display_startup_errors', 1); > > > > var_dump(get_include_path()); > > require_once '/usr/local/lib/php/MDB2.php'; > > ?> > > > > There's got to be something on the server affecting it, as > the paths all > > seem correct... > > Yeah, that's freaky weird. > > Try this and see if it works: > <?php > set_include_path('/usr/local/lib/php/'); // <-- note trailing / > require_once 'MDB2.php'; > ?> > > I doubt it will, but it's worth a try. > > Greg >

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