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
Explain what does the unlink() function means?
What is the use of header in php?
What is url encoding and decoding in php?
What is difference between web service and api?
Is time a dependent variable?
What is singleton class in php?
What are super global variables in php?
Write the statements that are used to connect php with mysql
Tell me how to set a page as a home page in a php based site?
Why use static methods php?
What are the advantages of indexes?
How to fix "headers already sent" error in php
How to connect to mysql from a php script?
What does $_server mean?
Is learning php easy?