RE: [PEAR] Re: WELCOME to pear-general@lists.php.net
| From: | Darren Ehlers | Date: | Sat, 07 May 2005 03:11:33 +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-19091@lists.php.net to get a copy of this message | ||
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...
Darren Ehlers
> -----Original Message-----
> From: Greg Beaver [mailto:cellog@php.net]
> Sent: Friday, May 06, 2005 6:10 PM
> To: darren@ehlersconsulting.net
> Cc: pear-general@lists.php.net
> Subject: [PEAR] Re: WELCOME to pear-general@lists.php.net
>
>
> Darren Ehlers wrote:
> > I have a problem that I cannot seem to track down.
> >
> > Everthing works fine on my local test system, but when
> uploaded to my
> > server, it's like the include_path isn't being checked.
> For example:
> >
> > require_once ('MDB2.php');
> >
> > Won't work at all (file not found), but the file IS there in the
> > /usr/local/lib/php/ directory.
> >
> > BUT, this works fine:
> >
> > require_once ('/usr/local/lib/php/MDB2.php');
> >
> > And the include path is:
> >
> > /usr/local/lib/php
> >
> > I'm missing something here, and at a loss...
> >
> > Thanks in advance for any ideas.
> >
> > Darren Ehlers
>
> try this script:
>
> <?php
> var_dump(get_include_path());
> require_once 'MDB2.php';
> ?>
>
> Greg
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>