Preserved Topic: PHP: '@' before statements (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 11-01-2001 19:07 |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-01-2001 19:21
Doesn't it turn off error reporting? Getting the error report on the page is useful for debugging but could have security implications so it can be handy to turn them off. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 11-01-2001 20:04
As Emperor said @ is error-control operator. Sometimes it is good to disable error reporting so that malicious users can't probe your scripts and find security holes... |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 11-01-2001 20:08
thanks for the quick response, guys! |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 11-01-2001 22:17
It also works well as you have it shown with "die" to give your own error messages that the user might understand, instead of the error message that PHP will generate. |