In what situations should developers consider using require instead of include in PHP scripts for better reliability and error handling?

Developers should consider using require instead of include in PHP scripts when they want to ensure that a file is included and executed successfully. Using require will cause a fatal error if the file cannot be included, making it easier to handle errors and ensure the script's reliability.

<?php
require 'file.php';
// Rest of the code
?>