Re: $POST and $_SESSION

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15 Mar 2012, at 18:48, sono-io@xxxxxxxxxxxxx wrote:

> On Mar 15, 2012, at 11:35 AM, Daniel Brown wrote:
> 
>> On Thu, Mar 15, 2012 at 14:31, Stuart Dallas <stuart@xxxxxxxx> wrote:
>>> 
>>> The @ prefix is banned from all code I go anywhere near - it's evil! 
>> 
>>   For the most part, I agree with you,
> 
> 	Hmm... I use it on my web pages (unless I'm testing) so that if something goes wrong, my customers don't see a bunch of garbage with paths to my PHP scripts.  Is there a better way to handle this situation?

Change your php.ini settings to log to a file and set display_errors to off.

Error, warnings and notices are all telling you something - ignoring them is ill-advised. "If something goes wrong" your code should be able to cope with it without generating errors, warnings, or notices. Rule number one when I'm coding... expect the unexpected and make sure it's appropriately handled.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux