failed to open stream: No such file or directory

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
hame22
Forum Contributor
Posts: 214
Joined: Wed May 11, 2005 5:50 am

failed to open stream: No such file or directory

Post by hame22 »

Hi all

I have a web application written in php that connects to a number of function files. The application works completely fine, but sometimes i get error messages such as:

Warning: main(db_functions.php): failed to open stream: No such file or directory in /usr/local/home/httpd/vhtdocs/fenman/web/activities/includes/auth_functionsv2.php on line 3

Warning: main(): Failed opening 'db_functions.php' for inclusion (include_path='') in /usr/local/home/httpd/vhtdocs/fenman/web/activities/includes/auth_functionsv2.php on line 3

this is very sporadic, is there anyway I can prevent these errors ever occuring, perhaps I am trying to make too many connetions at once?? I dont know

any help will be appreciated.

Thanks
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

sounds like your trying to include a file that is in the wrong directory
hame22
Forum Contributor
Posts: 214
Joined: Wed May 11, 2005 5:50 am

Post by hame22 »

no, that is not it, as my code works 95% of the time,

when this error appears, a page refreash will generally fix the problem, but how do i exterminate it for good??
Post Reply