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 ?

Answers were Sorted based on User's Feedback



What is the difference between include and include_once ? Which is one is good in terms of perform..

Answer / abhishek dilliwal

u may include a single file several times by using
include() but by using include_once() its ensured tht the
specific file would be included only once no matter how
many times u wrote it ;)

-Abhishek Dilliwal
http://abhishek.x10hosting.com

Is This Answer Correct ?    13 Yes 2 No

What is the difference between include and include_once ? Which is one is good in terms of perform..

Answer / 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

More PHP Interview Questions

How do you count numbers in php?

0 Answers  


How to run a php script?

0 Answers  


What is meant by nl2br()?

4 Answers   Rushmore Consultancy,


What is the difference between the functions unlink and unset?

8 Answers   Small Firm, TCS,


Is false empty php?

0 Answers  


What changes I have to do in php.ini file for file uploading?

0 Answers  


When are you supposed to use endif to end the conditional statement?

0 Answers  


What are the functions for imap?

0 Answers  


What is "echo" in php?

0 Answers  


How to add a cookie?

2 Answers  


Are parent constructors called implicitly inside a class constructor?

0 Answers  


When sessions ends?

0 Answers  


Categories