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 is the exact Diff. between include_once() and
require_once() in PHP?

Answer Posted / vineet kumar saini

1.include() includes a file in memory no matter if it has
already been loaded
2.include_once() includes a file in memory only if it has
not been loaded already
3.require() includes a file in memory no matter if it has
already been loaded. if the file cannot be loaded, the
script is aborted
4.require_once() does the same as require(), but only if the
file hasn't been included yet. if the file's already in
memory, it has no effect.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are headers in php?

966


Which framework is best for php?

981


Do you know what is use of count() function in php?

1010


Why constructor is not overridden?

1014


Which is better get or post method?

918


Explain me is multiple inheritance supported in php?

1067


Which are the best start and end tags to use?

999


What is the correct php command to use to catch any error messages within the code?

1078


How we can retrieve the data in the result set of mysql using php?

1138


Do you know what is the differences between $a != $B and $a !== $B?

1003


What is T_PAAMAYIM_NEKUDOTAYIM?

1199


Why is php used for web development?

972


What is the delimiter default in PHP?

1083


Why do we use csrf token?

952


Does php 7 support multiple inheritance?

1021