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 difference between include and include_once ?
Which is one is good in terms of performance ?

Answer Posted / ankit

By Using include() function we can include a file any
number of times.But if you will face a Fatal error that is
a connect() or any function can not be redeclared then just
use include_once(), it will include that file only once,
then it doesn't matter how many times u include that
file. :)

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is split function in php?

921


How to execute a function in php?

894


How to get a total number of elements used in the array?

934


What is the difference between session_unregister() and session_unset()?

1063


Why does php start with variables?

966


Why do we use query?

876


Which function would you use to insert a record into a database in php?

993


Does facebook use php framework?

944


How to get ip address of clients machine?

909


Is false empty php?

941


Why would we use === instead of ==?

8788


Explain what are the different errors in php?

945


Explain me what is the goto statement useful for?

773


What is variable and data type?

957


What is PHP's configuration file called?

1142