PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This will supress the injection of error messages into the data stream output to the web client. You might do this, for example, to supress the display of error messages were foo() a database function and the database server was down. However, you're probably better off using php configuration directives or error handling functions than using this feature.
<?php
if (@mysql_query($q))
{
// do whatever
} else {
// alert admin via email, insert count into textfile, etc, etc..
}
?>
So to answer your question, in a more direct way, no. The script has that for a reason and to remove it would undermind that reason. I'd just keep it there.