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
What does $_cookie mean?
What is the difference between array_map () and array_shift ()?
What are sql injections, how do you prevent them and what are the best practices?
What are the correct and the most two common way to start and finish a PHP block of code?
What is the use of rand() in php?
What are the rules in creating php variable?
Does php support function overloading?
Explain the difference between static and dynamic websites?
How can we get the error when there is a problem to upload a file?
> symbol is used to redirect the output of a command. State Whether True or False?
What is mvc in php?
What are the advantages of indexes in php?
How to display your correct URL of the current web page?
What is active record in php?
What’s the special meaning of __sleep and __wakeup?