[nycphp-talk] Strange error including PEAR libraries
Hans Zaunere
zaunere at yahoo.com
Wed May 15 18:38:56 EDT 2002
Hmm.. the 20/80% of the time work situation is always tricky. Somehow,
in the file that you're requiring from, the include path is getting
smacked. From that same file, test including a file in the current
dir, etc.
If only that file is having problems with including, then check out any
config settings, or oddities in the file it self. Otherwise, you may
want to contact your provider. Sounds almost like theres some memory
corruption, although it could be anything I suppose.
Hans Z.
--- Tom Harrison <thetomharrison at hotmail.com> wrote:
> I am attempting to use PEAR's DB library in a project I'm working on,
> but am
> running into problems including the files in my php scripts. To
> include the
> library, I am 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
>
> Notice the part about the include path, (include_path=''). I did a
> test
> where I tried to include a dummy file with require_once 'foobar.php';
> and
> got this error:
>
> Fatal error: Failed opening required 'Foobar.php'
> (include_path='.:/usr/local/lib/php')....
>
> None of my scripts contain anything that modifies the include path. I
> am
> hosted with a pretty reliable company who has always known what
> they're
> doing so it would surprise me if they installed php incorrectly. I
> would
> really like to figure out how to fix this though, it's been bugging
> me for
> weeks. Also, my phpinfo() output says that my include_path is set to
> .:/usr/local/lib/php
>
> Tom
>
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
More information about the talk
mailing list