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

The include_once() function includes and evaluates the
specified file during the execution of the php script. It's
behavior is similar to the include() function but the only
difference is that if the code from a file has already been
included, it will not be included again.

Is This Answer Correct ?    87 Yes 14 No

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

Answer / archana

include()-many time refresh

include_once-only one time refresh

Is This Answer Correct ?    43 Yes 14 No

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

Answer / anjan

The include_once() statement includes and evaluates the
specified file during the execution of the script. This is a
behavior similar to the include() statement, with the only
difference being that if the code from a file has already
been included, it will not be included again. As the name
suggests, it will be included just once.

Is This Answer Correct ?    23 Yes 9 No

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

Answer / jitender kumar

include()-many time refresh

include_once-only one time refresh

Is This Answer Correct ?    12 Yes 0 No

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

Answer / joshna

Include():by using this include()we can embed external page
in the current script multiple time,if the embeded file is
not available it returns a warning message and executes the
rest of the statements.The include_once() is same as include
() but it includes the external file only one time and
ignores the remaining all include_once statement which
contains the same file name.

Is This Answer Correct ?    9 Yes 1 No

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

Answer / sanjay sharma

The include_once() statement includes and evaluates the
specified file during the execution of the script. This is a
behavior similar to the include() statement, with the only
difference being that if the code from a file has already
been included, it will not be included again. As the name
suggests, it will be included just once. so include_once() is
better than include().

Is This Answer Correct ?    10 Yes 5 No

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

Answer / hiren

The include_once() statement includes and evaluates the
specified file during the execution of the script. This is a
behavior similar to the include() statement, with the only
difference being that if the code from a file has already
been included, it will not be included again. As the name
suggests, it will be included just once.

Is This Answer Correct ?    3 Yes 1 No

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

Answer / anup baba

Include():by using this include()we can embed external page
in the current script multiple time,if the embeded file is
not available it returns a warning message and executes the
rest of the statements.The include_once() is same as include
() but it includes the external file only one time and
ignores the remaining all include_once statement which
contains the same file name.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / captain barbell

1. include_once is once while include is include..
2. include once is made by rowen while include is made by
alburo

Is This Answer Correct ?    5 Yes 5 No

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

Answer / max

Here one important note is that if u can add html file in to include_once() then for html files this function not works this function only works for php files.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What does namespace mean in php?

0 Answers  


How can we know the count/number of elements of an array?

1 Answers  


If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b? Can anyone explain how's the value of $$b=100

15 Answers   ABC, Asan, Indivar, Swistro Marketing Solutions,


What is list function with their uses.

0 Answers  


Inside a php function, what param needs to be set in order to access a global variable?

0 Answers  


What is var_dump function in php?

0 Answers  


Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?

0 Answers  


Can we use session in mvc?

0 Answers  


List some string function name in php?

0 Answers  


What is basename php?

0 Answers  


What should we do to be able to export data into an excel file?

0 Answers  


Tell me how can we automatically escape incoming data?

0 Answers  


Categories