In the context of PHP, what are the advantages and disadvantages of using require vs include statements for file inclusion?
When including files in PHP, the main difference between require and include statements is that require will cause a fatal error and stop the script execution if the specified file is not found, while include will only produce a warning and allow the script to continue. It is generally recommended to use require when including files that are essential for the script to run properly, as it ensures that the script will not continue if the required file is missing.
// Using require statement to include a file
require 'header.php';
```
```php
// Using include statement to include a file
include 'header.php';