What is difference between require() and include() ?
Last updated 7 years, 1 month ago | 2471 views 75 5
What is difference between require() and include() ?
The require() function is identical to include(), except that it handles errors differently. If an error occurs, the include() function generates a warning, but the script will continue execution. The require() generates a fatal error, and the script will stop.
(same for require_once() and include_once())