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()?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are escaping characters? Explain with an example?

1008


How does php and apache work?

1069


How to upload file in php?

1081


Do loops php?

1034


Are php short tags acceptable to use?

1003


Where can I find php ini file?

1000


How to invoke a user function?

1021


What is difference between static and constant?

1074


What is the function mysql_pconnect() usefull for?

1177


What is a controller in programming?

1150


Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?

1109


How do I know my xampp version?

1067


what the new feature add in php 7.2?

1031


What is the use of header() function in php?

1095


What is echo and print in php?

1017