Re: Strange error including DB.php
| From: | Tomas V.V.Cox | Date: | Thu, 16 May 2002 10:23:04 +0000 |
| Subject: | Re: Strange error including DB.php | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1389@lists.php.net to get a copy of this message | ||
Tom Harrison wrote:
>
> I have been searching for days and have been unable to come up with an
> answer for this strange problem. I'm trying to use the PEAR DB library with
> a site I'm developing. To include the library in the scripts, I'm using:
>
> require_once 'DB.php';
>
> About 20% of the time, my scripts will execute properly. The other 80% of
> the time, I get this error:
>
> Fatal error: Failed opening required 'DB.php' (include_path='') in
> /home/dpmusic/public_html/admin/dbconn.php on line 2
A quick fix could be to manual setting the include path at the top of
your script with ini_set(). Of course is only a workarround not the real
solution.
Tomas V.V.Cox