Re: Fatal error with 'DB.php'
| From: | jsWalter | Date: | Fri, 04 Jul 2003 18:23:52 +0000 |
| Subject: | Re: Fatal error with 'DB.php' | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20687@lists.php.net to get a copy of this message | ||
"Cristian Marin" <cristic@iakt.rdsnet.ro> wrote in message
news:20030704070932.5148.qmail@pb1.pair.com...
> There are two modes to solve this:
> - First when you are calling the file give the exact path from the file
you
> are calling to the DB.php
OK, I did...
require_once 'G:\etc\php\PEAR\DB.php';
This displayed nothing.
> - second, the 'include_path = ' is a php.ini property so is there you have
> to add the path to the DB.php
>
> The php try first to access the DB.php directly assuming the file is in
the
> same directory,
same directory as what?
the php executable or the calling script?
DB.php is in the dir as php.exe
> if it can't find him it will search the file into the paths
> defined in the include_path property. That's why you see the error that it
> can't find the file into the include_path.
> Try the first solution.
Thanks Cristian for the idea, but I should have given you what I had in my
INI to begin with...
That was the first thing I did...
include_path = ".;G:\etc\php\extensions;G:\etc\php\pear"
extension_dir = "G:\etc\php\extensions"
I thought if I placed the path to the PEAR files in the 'include_dir' value
all would work.
Nope.
It still wants 'C:\php4\pear'
:(
Thanks
Walter