Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Differentiate PHP include and require statement

The only difference is — the include() statement will only generate a PHP warning but allow script execution to continue if the file to be included can't be found, whereas the require() statement will generate a fatal error and stops the script execution.
 
PREVIOUS NEXT
Tagged: #Differentiate #PHP #include #require #statement
ADD COMMENT
Topic
Name
5+1 =