What is the potential issue with using require and include in PHP scripts?

The potential issue with using require and include in PHP scripts is that if the file being included is not found, it will result in a fatal error and halt the script execution. To solve this issue, you can use require_once or include_once instead, which will only include the file once and prevent any errors if the file is not found.

<?php
require_once 'myfile.php';
// rest of the code
?>