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??? Link to comment https://forums.phpfreaks.com/topic/16933-probably-as-silly-question-but-i-am-learning-all-the-time/ 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. Link to comment https://forums.phpfreaks.com/topic/16933-probably-as-silly-question-but-i-am-learning-all-the-time/#findComment-71307 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 Link to comment https://forums.phpfreaks.com/topic/16933-probably-as-silly-question-but-i-am-learning-all-the-time/#findComment-71310 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. Link to comment https://forums.phpfreaks.com/topic/16933-probably-as-silly-question-but-i-am-learning-all-the-time/#findComment-71379 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.