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
How do I run a php program in dreamweaver?
Do loops php?
What is sql injection in php?
How to create a session? How to set a value in session? How to remove data from a session?
Differences between get and post methods?
What is the use of inner join in mysql?
In how many ways we can retrieve the data in the result set of mysql using php?
What is url encoding and decoding in php?
What is the use of the function 'imagetypes()'?
What is the difference between md5(), crc32() and sha1() crypto on php?
Tell me what are magic methods?
How can you encrypt password using php?
What is the Pipe Symbol represented?
What is meant by public, private, protected, static and final scopes?
What is the purpose of the php empty function?