![]() |
@ before functions???
Well the title is self explanatory, i have seen this used a lot of times but dont know the difference :
Are the same : :
$link = mysql_connect("localhost", "root", "pass"):
$link = @mysql_connect("localhost", "root", "pass")If not what is the difference. |
The @ suppresses error output to the page. Needless to say, you shouldn't resort to it until the code is released. Released code should have a mechanism to log errors or notify the author by email, or something.
|
Yeah, like dawei said it tells the function not to print errors. Information like that could possibly be used to break in.
|
Thanx guys, for the help.
|
| All times are GMT -5. The time now is 10:22 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC