quote:
Originally posted by Felu
php code:
if(file_exists($llama))
include ($llama);
else
include("error.php");
You forgot to remove the space after the first occurance of "include".
Anyway, using
require instead of include may be something to think about...
quote:
require() is identical to include() except upon failure it will produce a fatal E_ERROR level error. In other words, it will halt the script whereas include() only emits a warning (E_WARNING) which allows the script to continue.