What potential issue could arise when using include() in PHP scripts?
When using include() in PHP scripts, a potential issue that could arise is that if the file being included does not exist, it will result in a warning message being displayed to the user. To solve this issue, you can use the function file_exists() to check if the file exists before including it.
if (file_exists('file_to_include.php')) {
include 'file_to_include.php';
} else {
echo 'File not found.';
}