please indly temme d diff btwn dez two programs:
<?php
include("wrongfile.php");
echo "hello world!!!!";
?>
and
using require instead of include!
both are generating the same error as follows;
PHP Warning: require(wrong.php) [
function.require]: failed to open stream: No such file or directory in C:\inetpub\wwwroot\req.php on line 3 PHP Stack trace: PHP 1. {main}() C:\inetpub\wwwroot\req.php:0 PHP Fatal error: require() [
function.require]: Failed opening required 'wrong.php' (include_path='.;C:\php5\pear') in C:\inetpub\wwwroot\req.php on line 3 PHP Stack trace: PHP 1. {main}() C:\inetpub\wwwroot\req.php:0
An error occured in the script being debugged:
require() [<a href='function.require'>function.require</a>]: Failed opening required 'wrong.php' (include_path='.;C:\php5\pear')
and for include error was:
An error occured in the script being debugged:
include(wrongfile.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
