The Dangers of PHP's error control operator
10/12/2007 at 7:25 p.m. (4 years, 3 months ago)
10/12/2007 at 7:25 p.m. (4 years, 3 months ago)
Some of you might know what this is:
@
Here is another example in the wild.
<?php
@mysql_query('SELECT foo FROM bar');
?>
If you should encounter this creature in the wild, run the other way! It is very dangerous and will pollute your coding. This is similar to smashing your mother's fine china and sucking it up with a shopvac. Don't do this! Instead, consider disabling error reporting on your server. That is all.
