Hi,
My website was runing fine for a few months but no all of a sudden i get following error while accessing my database:
Warning: main(DB.php): failed to open stream: No such file or directory in /home/w20998/public_html/test.php on line 5
Fatal error: main(): Failed opening required 'DB.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/w20998/public_html/test.php on line 5
I have following line at the top of my code:
require_once('DB.php');
I checked with my administrators and they told me the DB.php file is available and accessible at following locations:
/usr/local/lib/php/DB.php
/usr/lib/php/DB.php
But when I try to use these absolute paths I still get the same error.
I looked around on the net and found the following to add at the top of my code:
ini_set('include_path', ini_get('include_path'));
But still nothing.
Is there anybody who has an idea, because I'm getting out of them.
Thanx alot for your help,
:Tijs
My website was runing fine for a few months but no all of a sudden i get following error while accessing my database:
Warning: main(DB.php): failed to open stream: No such file or directory in /home/w20998/public_html/test.php on line 5
Fatal error: main(): Failed opening required 'DB.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/w20998/public_html/test.php on line 5
I have following line at the top of my code:
require_once('DB.php');
I checked with my administrators and they told me the DB.php file is available and accessible at following locations:
/usr/local/lib/php/DB.php
/usr/lib/php/DB.php
But when I try to use these absolute paths I still get the same error.
I looked around on the net and found the following to add at the top of my code:
ini_set('include_path', ini_get('include_path'));
But still nothing.
Is there anybody who has an idea, because I'm getting out of them.
Thanx alot for your help,
:Tijs