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's the diff. between include() and Include_once().

Answer Posted / murali

include_once() will not include a file that has already been
included. include() will include a file every time.
include_once() is useful if you have php scripts which
include scripts which include scripts. If 2 of the scripts
include the same file then you might get variables and other
things being overwritten. Using include_once() ensures you
get the functionality that the scripts need but without any
side effects.

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 the file upload settings in configuration file?

1041


What is substr() in php? And how it is used?

1051


Explain the casts allowed in PHP?

1039


Explain the different types of errors in php.

1082


Why php script is not running in browser?

1048


Explain me what is the difference between explode() and split() functions?

1098


> symbol is used to redirect the output of a command. State Whether True or False?

1157


Steps for the payment gateway processing?

1017


What is use of count() function in php?

1035


Is php a dying language?

998


Tell me how is it possible to return a value from a function?

1009


What sized websites have you worked on in the past?

997


How are php sessions stored?

977


What is the differences between $a != $B and $a !== $B?

1078


Tell me what is the use of explode() function?

987