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")
}
I would consider the explicit comparison to TRUE an issue of style, which is why I didn't complain about it.