What are the differences between require and include,
include_once?
Answer Posted / sri harsha
include();--> include the file, but in case of file missing
throws a warning and continues execution of code of next line.
require();--> require also includes the file but in case of
file missing throws an fatal error and stop the execution of
the code of next line.
include_once();-->if same file was included first it will
not include the file another time.
| Is This Answer Correct ? | 46 Yes | 1 No |
Post New Answer View All Answers
What is the difference between overloading and overriding in php?
What are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?
What is xss and csrf?
How do you debug php?
How to create a session? How to remove data from a session?
How does the identity operator === compare two values?
Explain include(), include_once, require() and require_once?
What is the use of imagetypes() method?
Which function is used in php to search a particular value in an array?
What are php magic methods/functions?
Explain me what is the w3c?
What is htaccess? Why do we use this and where?
Tell me what is htaccess?
Does exist in php?
What does it mean when it says the csrf token is invalid?