Forum Moderators: coopster
The line below is in my php program:
include 'opendb.php';
But it gives the following error:
PHP Warning: include(opendb.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in C:/...
No such files are present in the php installation. please tell me if any one has the solution for this.
chandran
For more info pleae read here [gr.php.net]
let's say you have such a dir/file structure:
include/head.php
include/functions.php
index.php
index.php:
<?php
include 'include/head.php';
?>
head.php:
<?php
//include 'functions.php' //will return error
include 'include/functions.php';
?>
Hope this cleares everything
Michal