WebmasterLingo
Windows 2003, cPanel & DirectAdmin Unix Web Hosting

Go Back   WebmasterLingo > Programming Corner
User Name
Password

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old July 1st, 2009, 01:41 AM   #2
maahi
Registered User
 
Join Date: Jun 2009
Posts: 3
maahi is on a distinguished road
Send a message via AIM to maahi
Question

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

maahi is offline   Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 11:14 AM.

JustEdge Dedicated Servers