What is difference between require() and include() ?
Last updated 5 years, 5 months ago | 1660 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())