![]() Preserved Topic: PHP: '@' before statements (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
![]() |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() 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 |
![]() 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 |
![]() thanks for the quick response, guys! |
Paranoid (IV) Inmate From: New Jersey, USA |
![]() 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. |