PHP Include Files
The concept of file inclusion that helps to include files in various programs and saves the effort of writing code multiple times. There are two ways to include file in PHP.
PHP include and require Statements
- require will produce a fatal error (E_COMPILE_ERROR) and stop the script
- include will only produce a warning (E_WARNING) and the script will continue