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

Where are php configuration settings stored?

1010


What is php7?

1059


How to delete a file from the system?

1048


What is the difference between super () and this ()?

1042


What is php session_start() and session_destroy() function?

1035


Is php faster than python?

1024


How to execute a php script from the command line?

1078


Explain how you can update memcached when you make changes to php?

1117


what are the differences between php and perl

2033


What is difference between print and echo in php?

915


Write a php script to get the largest key in an array?

1016


Is empty java?

1013


What is the use of mysql_real_escape_string() function?

916


What are the difference between overloading and overriding in oops?

1010


How to remove blank spaces from the string?

1001