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 are the differences between include() and include_once
() functions?

Answers were Sorted based on User's Feedback



What are the differences between include() and include_once () functions?..

Answer / anjali ashok arote

include()function is more time consuming because of redeclaration is more in include() file ...
where as include_once()function only declare one time...
in include()function refreshment of file is needed many time
but in include_once()function refreshment of page is only one time

Is This Answer Correct ?    0 Yes 0 No

What are the differences between include() and include_once () functions?..

Answer / nishit

file1.php:
function check()
{
echo 'hello nishit';
}
file2.php
include('file1.php');
check();

file3.php
include('file1.php');[this is worn we should use here
include once.]
include('file2.php');
check();

while execute file3.php see what the error:

Is This Answer Correct ?    4 Yes 5 No

Post New Answer

More PHP Interview Questions

How many days will it take to learn php?

0 Answers  


What software is required for php?

0 Answers  


what mode to use when creating dirs with mkdir?

1 Answers  


What is the use of $_server and $_env?

0 Answers  


What is member function?

0 Answers  


What is design pattern? Explain all including singleton pattern?

0 Answers  


What are the Merits and De-Merits of CURL library ?

1 Answers  


What is the difference between ereg_replace() and eregi_replace()?

2 Answers   Quicknet,


What is the difference between associative array and indexed array?

0 Answers  


What is mysqli php?

0 Answers  


what is the importence of session.save_path in Php.ini file and wht changes u've to made before using sesssions in ur php program first time?

4 Answers  


How do you measure variables?

0 Answers  


Categories