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

How to define a user function?

1077


What does PEAR stands for?

1107


How would you open a directory for reading in php?

1058


Explain the differences between get and post methods?

1024


How we get ip address of client, previous reference page etc?

1022


What does php mean?

1036


Tell me how do you execute a php script from the command line?

1041


What is singleton design pattern in php?

1043


What is the most common http method?

1147


Does php support function overloading?

1024


How to make a class in php?

1022


What is Apache's configuration file typically called?

1198


How do you create an array in php?

1071


Can constructor be private in php?

1087


How to set a page as a home page in a php based site?

984