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

What Makes A Software Programmer a Professional? - CodeProject

Summary article written by Rob Kraft in