glenelkins Posted August 8, 2006 Share Posted August 8, 2006 HiIv wondered ever since I started coding PHP, and now to be honest I am pretty damn good at it. THough like most people you need to ask questions and read things if your unsure..only natural; which i find this website great for by the way!Anyway, what the hell do some of you put "@" for in front of things, for example iv seen a post with $varname = @mysql_query(what does the "@" do??? Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 8, 2006 Share Posted August 8, 2006 error reporting supression - it means if there is an error there no warning will be printed to the screen - I only use this on lines that are not critical to the scripts completion. Quote Link to comment Share on other sites More sharing options...
glenelkins Posted August 8, 2006 Author Share Posted August 8, 2006 Ah ok, not my ideal way of programming, I always add error handlers....for everything!! lol ;D Quote Link to comment Share on other sites More sharing options...
Barand Posted August 8, 2006 Share Posted August 8, 2006 If you always handle the errors youself then it could be a good idea to use the "@" as will suppress the default error messages output by the PHP processor. 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.