Tags

[function.include-once]: failed to open stream

Error

[function.include-once]: failed to open stream

Solution

Failed to open stream it mean you include page but no such page the server find in you given directory .
Make sure the page which you include  have in that directory which you mention in includes function.

For Example :

here i am going to include data base connection file.
I saved it in includes directory with name of con.php.

<?
include_once(‘includes/con.php’);
?>

I include this function in index page.

If You Write include or any other name  instead of includes the error you got this

Warning: include_once(include/con.php) [function.include-once]: failed to open stream: No such file or directory in E:\localhost\index.php on line 2