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

what is the difference between GET,POST and REQUEST in php

1 Answers  


What are arguments in php?

0 Answers  


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

0 Answers  


Is php still relevant 2019?

0 Answers  


In PHP, fgets() is used to read a file one line at a time. State Whether True or False?

0 Answers  


Name the Functions in IMAP, POP3 AND LDAP?

2 Answers  


What is difference between isset and empty in php?

0 Answers  


How we can convert dynamic url into static url? plz provide code.

2 Answers   Xento,


How I use global variable in another page without using $_GET method?

9 Answers  


Which function Returns the time of sunrise for a given day / location in PHP.

0 Answers  


How can post form values with out press submit button

5 Answers  


Is PHP an open source software?

0 Answers  


Categories