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

How is it possible to return a value from a function?

1063


Could we start a variable with number like $4name?

974


How would you open a directory for reading in php?

1057


Please explain is it possible to use com component in php?

1046


Are parent constructors called implicitly inside a class constructor?

1008


A process is identified by a unique___

1115


What is a collection in php?

994


Tell me what types of loops exist in php?

1195


What is a controller php?

1061


Tell me what is the difference between exception::getmessage and exception::getline?

955


Can php run without apache?

1066


What is the difference between associative array and indexed array?

1170


Is php easy language to learn?

1105


What percentage of websites use php?

1038


What are differences between PECL and PEAR?

1145