I\'m writing a script in PHP5 that requires the code of certain files. When A file is not available for inclusion, first a warning and then a fatal error are thrown. I\'d li
I just use 'file_exists()':
if (file_exists("must_have.php")) { require "must_have.php"; } else { echo "Please try back in five minutes...\n"; }