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 do I run a php program in dreamweaver?

1056


Do loops php?

974


What is sql injection in php?

1112


How to create a session? How to set a value in session? How to remove data from a session?

963


Differences between get and post methods?

1017


What is the use of inner join in mysql?

964


In how many ways we can retrieve the data in the result set of mysql using php?

920


What is url encoding and decoding in php?

1083


What is the use of the function 'imagetypes()'?

996


What is the difference between md5(), crc32() and sha1() crypto on php?

1042


Tell me what are magic methods?

966


How can you encrypt password using php?

1030


What is the Pipe Symbol represented?

1079


What is meant by public, private, protected, static and final scopes?

1027


What is the purpose of the php empty function?

945