[Cialug] PHP Question

kevin kevin at linuxsmith.com
Wed Nov 9 09:55:33 CST 2011


 I'm not able to find quick answer to this.
 What's the "@" doing in PHP code I look at?
 I don't use PHP, but trying to fix an issue that may be related?

 Code I'm looking at:
 @date_default_timezone_set(get_option('timezone_string'));

 Wondering if I should try:
 date_default_timezone_set(get_option('timezone_string'));

 But have no idea what the @ does.
 Currently the timezone setting in a WP plugin is inconsistently used.
 I suspect this:

 Plugin runs, if importing only one post all is well.
 Plugin runs, if looping over multiple posts some don't get tz setting.
 Just a hunch at this point.


More information about the Cialug mailing list