quote:
Originally posted by davidpolitis
quote:
Originally posted by segosa
php code:
if(file_exists($llama) == TRUE){
include ($llama);
}
else {
include("error.php")
}
The == TRUE part also may as well as be removed as file_exists returns a boolean value...
php code:
if(file_exists($llama)){
include ($llama);
}
else {
include("error.php")
}
If you really care about that... Then you're just executing 1 line of code for the condition... you don't even need the curly brackets in that case
php code:
if(file_exists($llama))
include ($llama);
else
include("error.php");