Sunday, August 28, 2016

PHP: require() vs include()

You can insert the content of one PHP file into another 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:


include() generates a warning, but the script will continue execution


require() generates a fatal error, and the script will stop

No comments:

Post a Comment

How to install LibreOffice on macOS

Download new version at https://www.libreoffice.org/download/download-libreoffice/ Click the info link ( https://download.documentfoundation...