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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is $_ server request_method == post?

751


What is the use of strip_tags() method?

726


How we can declare variable in php?

715


What is the difference between array_map () and array_shift ()?

713


Does strlen include null?

786


What is a php form?

748


Explain mysql_error().

749


What is difference between echo and print in php?

691


What kind of things have you done on the social side?

8775


How do you check if a variable has not been set in php?

697


How should a model be structured in mvc?

696


What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?

730


Are php sessions secure?

715


How to create and destroy cookies in php?

669


Which is a perfect example of runtime polymorphism?

709