I'm attempting to write a script using PEAR's DB.php abstraction library, and am running into a problem including the file. I am using the following to include it:
require_once 'DB.php';
About 20% of the time, the script executes properly without any errors.
The other 80% of the time I get the following error:
Fatal error: Failed opening required 'DB.php' (include_path='') in /home/dpmusic/public_html/admin/dbconn.php on line 2
I have no idea as to why this is happening. Could other threads of PHP be locking DB.php? If I try this:
require_once '/usr/local/lib/php/DB.php';
It will include DB.php OK, but then the require statements inside the DB library that call PEAR.php return the same inclusion error.
Here's my phpinfo() output if it's helpful: http://www.deafperception.com/phpinfo.php