Whats the difference between include() and require()?
Answer Posted / kathiresan n
You can insert the content of a file into a PHP file before
the server executes it, with the include() or require()
function.
The two functions are identical in every way, except how
they handle errors.
The include() function generates a warning but the script
will continue execution while the require() function
generates a fatal error and the script execution will stop
after the error.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Which operator is used to combine string values in php?
How to block direct directory access in PHP?
What are the difference between array_keys() and array_key_exists() in php?
How does csrf token work?
What is the difference between single quoted string and double quoted string?
Are react hooks stable?
What is the use of ajax in php?
What are the advantages of stored procedures, triggers, indexes in php?
How cookies are transported from browsers to servers?
Tell me what are the correct and the most two common way to start and finish a php block of code?
What is the function of mysql_real_escape_string in php?
What is boolean in php?
How is it possible to cast types in php?
Why php was called as personal home page?
Why is overriding runtime?