npd1164 Posted July 23, 2010 Share Posted July 23, 2010 I've run across a piece of code that uses this: @include_once('somefile.php') I'm familiar with "include_once()" is ...but what does the "@" symbol do that precedes it? Sorry, I've searched online and can't seem to find a reference. Link to comment https://forums.phpfreaks.com/topic/208719-include_once/ Share on other sites More sharing options...
gizmola Posted July 23, 2010 Share Posted July 23, 2010 @ disables php's normal error handling mechanisms, so basically if that include_once() was to fail the script would not stop. Link to comment https://forums.phpfreaks.com/topic/208719-include_once/#findComment-1090420 Share on other sites More sharing options...
Tazerenix Posted July 23, 2010 Share Posted July 23, 2010 @ disables php's normal error handling mechanisms, so basically if that include_once() was to fail the script would not stop. or more, the script would not report the error, include_once would keep the script alive after the error anyway. Link to comment https://forums.phpfreaks.com/topic/208719-include_once/#findComment-1090454 Share on other sites More sharing options...
npd1164 Posted July 24, 2010 Author Share Posted July 24, 2010 Ah, okay ...that makes sense! Thanks so much. Link to comment https://forums.phpfreaks.com/topic/208719-include_once/#findComment-1090491 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.