[Cialug] PHP Question

Ralph Kessel ralphkessel75 at yahoo.com
Wed Nov 16 13:28:45 CST 2011


The @ sign in php code tells the compiler to ignore error messages.



________________________________
From: Matt Patterson <matt at usrlocal.com>
To: Central Iowa Linux Users Group <cialug at cialug.org>
Sent: Wednesday, November 9, 2011 10:31 AM
Subject: Re: [Cialug] PHP Question

You can set the timezone in the php.ini file.  Most distros I think are throwing it somewhere in the /etc directory.  /etc/php5 or sometimes under /etc/apache2

-Matt



On Nov 9, 2011, at 10:23 AM, Kevin C. Smith wrote:

> That wouldn't be my issue I guess.
> Thanks 
> 
> Sent from my U.S. Cellular® Android phone
> 
> Matt Patterson <matt at usrlocal.com> wrote:
> 
>> 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
>> 
>> _______________________________________________
>> Cialug mailing list
>> Cialug at cialug.org
>> http://cialug.org/mailman/listinfo/cialug
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug

_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cialug.org/pipermail/cialug/attachments/20111116/3a76e51c/attachment.html>


More information about the Cialug mailing list