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...

What are the differences between require and include,
include_once?

Answer Posted / sri harsha

include();--> include the file, but in case of file missing
throws a warning and continues execution of code of next line.

require();--> require also includes the file but in case of
file missing throws an fatal error and stop the execution of
the code of next line.

include_once();-->if same file was included first it will
not include the file another time.

Is This Answer Correct ?    46 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is it possible to set an infinite execution time for php script?

1011


Explain array_uintersect()?

1060


Tell me what is mean by an associative array?

1156


Do you know what are traits?

1066


How stop the execution of a php scrip?

1066


What is the difference between get & post ?

1168


How would you open a directory for reading in php?

1055


How to protect special characters in query string?

1010


What is api laravel?

1155


When do you use define() and when do you use const. What are the main differences between those two?

1106


What is the difference server side and browser side validation?

1056


How do I find environment variables?

1066


What is the functionality of md5 function in php?

1067


Is gender a dependent variable?

1025


What is $globals php?

1078