include() generates a warning, but the script will continue execution.

Syntax: include(path)

Description:

The argument “path” is Required. It specifies the path to the file that is to be called.

Example:
Code:

include("abc.php");
echo  "Hello";

Output:

Warning: include(abc.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\control structure\include.php on line 2

Warning: include() [function.include]: Failed opening ‘abc.php’ for inclusion (include_path=’.;C:\php5\pear’) in C:\wamp\www\control structure\include.php on line 2
Hello

eXTReMe Tracker