What is the exact Diff. between include_once() and
require_once() in PHP?
Answer Posted / vineet kumar saini
1.include() includes a file in memory no matter if it has
already been loaded
2.include_once() includes a file in memory only if it has
not been loaded already
3.require() includes a file in memory no matter if it has
already been loaded. if the file cannot be loaded, the
script is aborted
4.require_once() does the same as require(), but only if the
file hasn't been included yet. if the file's already in
memory, it has no effect.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
List some string function name in php?
How to create a mysql connection?
Which methods should be used for sending an email using the variables $to, $subject, and $body?
Where is php code written?
What does isset() function?
What is difference between count or sizeof function in php?
Explain what does the unlink() function means?
How should a model be structured in mvc?
What is symfony php?
What are magic methods?
What is url encoding and decoding in php?
What is member function?
What is difference between html and php?
What is the correct and the most two common way to start and finish a php block of code?
What are the different components used in php for formatting?