vang163 Posted July 21, 2008 Share Posted July 21, 2008 hi, i've seen some coding online like below: eg. 1) $ip = @$REMOTE_ADDR; 2) @mysql_free_result(); what is the function/purpose of using this symbol '@' ? Quote Link to comment Share on other sites More sharing options...
LooieENG Posted July 21, 2008 Share Posted July 21, 2008 I may be wrong, but I'm pretty sure it stops PHP outputting any errors. Quote Link to comment Share on other sites More sharing options...
unkwntech Posted July 21, 2008 Share Posted July 21, 2008 That is correct. When you call a function with a @ infront of it, php will not output any errors produced by that function. Quote Link to comment Share on other sites More sharing options...
xsist10 Posted July 21, 2008 Share Posted July 21, 2008 For more info check out http://www.php.net/@ Quote Link to comment Share on other sites More sharing options...
numan82 Posted July 21, 2008 Share Posted July 21, 2008 well to be more accurate it is exception handling in PHP, that can show friend messages in case of exceptional errors /fatal errors. thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.