What are the differences between require and include,
include_once?
Answer Posted / tina
require - including a file/page ,if file doesn't exist,then
it gives error and doesn't execute.
include-including a file/page,if file doesn't exit,then it
gives warning and begin to execute.
include_once-including file/page, if it didn't been already
included,it includes else it won't.
| Is This Answer Correct ? | 41 Yes | 3 No |
Post New Answer View All Answers
How to convert strings in hex format?
Which php framework is best for web development?
What is a class in php programing?
What are the Advantages and Application Areas of PHP?
What is the difference between for and foreach?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
What are php filters?
What is the best practice for running mysql queries in php? Consider the risk of sql injection.
Is php faster than javascript?
Tell me how can we determine whether a variable is set?
Why session is required?
what is the use of include_once in php?
Tell me how can we check the value of a given variable is alphanumeric?
What is PECL?
What is php session and how it works?