Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Whats the difference between include() and require()?

Answers were Sorted based on User's Feedback



Whats the difference between include() and require()?..

Answer / kathiresan n

You can insert the content of a file into a PHP file before
the server executes it, with the include() or require()
function.
The two functions are identical in every way, except how
they handle errors.
The include() function generates a warning but the script
will continue execution while the require() function
generates a fatal error and the script execution will stop
after the error.

Is This Answer Correct ?    9 Yes 0 No

Whats the difference between include() and require()?..

Answer / mahidhar

include() produces a Warning message where as require()
gives Fatal Error.

Is This Answer Correct ?    8 Yes 3 No

Whats the difference between include() and require()?..

Answer / priyanka

include() function generates a warning but the script
will continue execution while the require() function
generates a fatal error and the script execution will stop
after the error.

Is This Answer Correct ?    1 Yes 0 No

Whats the difference between include() and require()?..

Answer / shanawar

Both used for connecting to the database. but the main
difference b/w them if we r using include()and the file is
not found then a warring will be occure and script will be
execute.. But in the case of require() a error will occure
and script will be helt........................ Shanawar

Is This Answer Correct ?    1 Yes 12 No

Post New Answer

More PHP Interview Questions

How can you send email in php?

0 Answers  


Write a statement to show the joining of multiple comparisons in php?

0 Answers  


What is the method to register a variable into a session?

0 Answers  


What is PHP? Who is the father or inventor of PHP?

0 Answers  


What is mysql_fetch_object?

0 Answers  


Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

0 Answers  


am from coimbatore.am learning php&mysql. what will be the approx salary for me if i get a job in coimbatore.

0 Answers   HCL,


how to track user logged out or not? when a user is idle?

0 Answers  


What type of comments are supported by PHP.

0 Answers  


What will replacement of localhost username and password on submission a site

2 Answers  


How to find a specific value in an array?

0 Answers  


Explain soundex() and metaphone().

0 Answers  


Categories