I hate that google can not search for symbols. I saw this in some sample code and wondered why there is an @ sign before the readfile function:
@readfile($filename);
What does it mean different to without an @ symbol?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
An
@before a command in PHP means that no errors are printed. It’s called the error control operator.If you removed the
@andreadfilewould encounter an error (such as not being able to read the file), then—depending on your PHP settings—the error message will be amidst your site content; something you rarely, if ever, want. (It gets worse even, if this happens before a call toheader()orstart_session()because once content is sent, the headers can’t be written anymore.)