Possible Duplicate:
Reference - What does this symbol mean in PHP?
I'm making a web application that uses URL queries to access different parts of the application. I was looking for a solution to make an invalid query like index.php?page=dashboarrrd
display an error 404 message instead of a PHP error.
After some searching, I found that I could use something like the following to do the job:
if(!@include($fileName)){
@include("pageData/404.php");
}
And that makes sense, but I don't know why that works. I mean, what the heck does the @
before the include
mean? I totally understand include $filename;
but I need an explanation for @include ($fileName)