Differentiate between require and include?
Answer / Rani
In PHP, both 'include' and 'require' are used to include a file into another. The main difference is that if an error occurs while including a file with 'require', the script will stop running. With 'include', it will only give a warning and continue running. Also, 'require' checks for the existence of the file before executing the script, while 'include' does not necessarily check for file existence before executing.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is empty in php?
What are php magic quotes?
What is default session time and path in PHP. How to change it?
What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?
11 Answers HCL, Rushmore Consultancy, Thursday Technology,
List some string function name in php?
Does php 5 support exceptions?
Is php class name case sensitive?
When to use get and post request?
What is mysql in php?
How to increase the maximum execution time of a script in php?
What is the best way to change the key without changing the value of a php array element?
What is html used for?