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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is faster?

1068


Explain which cryptographic extension provide generation and verification of digital signatures?

1071


What is the difference between pop3 IMAP and MAPI?

1112


What are global variables in php?

997


What are the uses of explode() and implode() functions?

1169


What is the difference between require_once and require in php?

1149


How can we create a database using php?

1184


Why is node js better than php?

1176


Tell me how can we get the error when there is a problem to upload a file?

1056


What is a comment in php?

1128


What is traits? How it is used in php?

1096


How can i execute PHP File using Command Line?

1040


What are the correct and the most two common way to start and finish a PHP block of code?

1110


What is difference between Method overriding and overloading in PHP?

1096


What is trim codeigniter?

1025