failed to open stream

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

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

failed to open stream

Post by hame22 »

Hi all,

Everynow and again my pages experience the following error message that goes away when i refreash the page:

Warning: main(query_functions.php): failed to open stream: No such file or directory

it has someting to do with my function files i believe.

Does anyone know why this happens and any solutions?

Thanks

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

Post by shiznatix »

you are pointing it to the wrong directory or using a wrong file name. what its saying is that the file does not exist where you are saying it is located. make sure you spelled the file name correctly and make sure you are pointing to the correct directory
hame22
Forum Contributor
Posts: 214
Joined: Wed May 11, 2005 5:50 am

Post by hame22 »

thats the thing, it is not the wrong file or directory because 99% of the time the page works correctly, i.e. it successfully includes the function files.

Its just that 1% of the time when this error appears, any ideas as its quite a strange error?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

post some code cause that sounds very strange
hame22
Forum Contributor
Posts: 214
Joined: Wed May 11, 2005 5:50 am

Post by hame22 »

this is how I am including the functions files in one file:

Code: Select all

<?php
include_once('../includes/user_auth_functions.php'); 
include_once('../includes/cat_functions.php');

session_start();

$man_id = $_GET&#1111;'man_id'];
?>
let me know if you need any more examples

thanks for your help
Post Reply