Home > Archive > PHP Pear > May 2005 > RE: WELCOME to pear-general@lists.php.net
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
RE: WELCOME to pear-general@lists.php.net
|
|
| Darren Ehlers 2005-05-06, 8:56 pm |
| 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
| |
| Greg Beaver 2005-05-07, 3:56 am |
| 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
| |
| Michael Rasmussen 2005-05-07, 3:56 am |
| On Fri, 06 May 2005 16:52:48 -0500, Darren Ehlers wrote:
>
> And the include path is:
>
> /usr/local/lib/php
>
> I'm missing something here, and at a loss...
>
Are your webserver running in a chroot environment?
--
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/...arch=0xE3E80917
| |
| Greg Beaver 2005-05-07, 3:56 am |
| Darren, did you try the script? Please paste output. I know it seems
silly, but you must verify from *within* the script that the
include_path is set up properly, otherwise we're just flapping in the
wind trying to help you.
Greg
Greg Beaver wrote:
> Darren Ehlers wrote:
>
>
>
> try this script:
>
> <?php
> var_dump(get_include_path());
> require_once 'MDB2.php';
> ?>
>
> Greg
|
|
|
|
|