mikesta707 Posted April 23, 2009 Share Posted April 23, 2009 I have used the @ and seen it a bunch of times. I use it quite often for certain functions actually, but I just don't understand what it does. ANyone care to explain it? Quote Link to comment https://forums.phpfreaks.com/topic/155427-solved-what-does-do/ Share on other sites More sharing options...
premiso Posted April 23, 2009 Share Posted April 23, 2009 Suppresses error message and should be avoided. Instead, on a production server you should turn display_errors to off in the php.ini to avoid showing the errors. But more importantly, you should find out why an error is being thrown and correct it at the source. Quote Link to comment https://forums.phpfreaks.com/topic/155427-solved-what-does-do/#findComment-817880 Share on other sites More sharing options...
Bauer418 Posted April 23, 2009 Share Posted April 23, 2009 It suppresses error messages for the code that it prepends. Quote Link to comment https://forums.phpfreaks.com/topic/155427-solved-what-does-do/#findComment-817881 Share on other sites More sharing options...
mikesta707 Posted April 23, 2009 Author Share Posted April 23, 2009 ooooooh I see. Wow I always wondered why that fixed the error I came across a long time ago... I never realized it never did. Well ill make sure to avoid that from now on Quote Link to comment https://forums.phpfreaks.com/topic/155427-solved-what-does-do/#findComment-817893 Share on other sites More sharing options...
Maq Posted April 23, 2009 Share Posted April 23, 2009 ooooooh I see. Wow I always wondered why that fixed the error I came across a long time ago... I never realized it never did. Well ill make sure to avoid that from now on Hahaha. Sure, '@' is a miracle symbol, it will resolve any and all errors. Quote Link to comment https://forums.phpfreaks.com/topic/155427-solved-what-does-do/#findComment-817899 Share on other sites More sharing options...
premiso Posted April 23, 2009 Share Posted April 23, 2009 lol, reminds me of a saying my first aid adviser said in boy scouts... "A turnicate around the neck will solve all your problems" He was a weird dude... Quote Link to comment https://forums.phpfreaks.com/topic/155427-solved-what-does-do/#findComment-817901 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.