[Cialug] PHP Question

Matt Patterson matt at usrlocal.com
Wed Nov 9 09:58:12 CST 2011


Its an error control operator.  It will ignore any error messages generated from said command after the @ symbol.

http://www.php.net/manual/en/language.operators.errorcontrol.php




On Nov 9, 2011, at 9:55 AM, kevin wrote:

> 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.
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug



More information about the Cialug mailing list