php code:
if(file_exists($llama) == TRUE){
include ($llama);
}
elseif(file_exists($llama) == FALSE){
include("error.php")
}
You seem to know what you're doing, so why do you write code like this? Assuming no caching, not only does it require two (if the first test fails) filesystem queries, but it's just downright pointless to do the check twice. If the first fails, then the result of file_exists is obviously false, and hence the else clause would be more than suitable.
php code:
if(file_exists($llama) == TRUE){
include ($llama);
}
else {
include("error.php")
}
quote:
Another way of doing it so you don't end up filling the url with messy slashes (and possibly confuddling your browser)
Why would it confuse the browser? They are generally indifferent to everything placed after the domain name, and will automatically urlencode what is necessary (like spaces).
http://blah.com/?f'dfd//s?'sd/744$///////idi2?444
will still result in "GET /?f'dfd//s?'sd/744$///////idi2?444 HTTP/1.1" being sent to the server (possibly after urlencoding). Using another character just adds another pointless level of abstraction.