Re: $POST and $_SESSION

From: Date: Thu, 15 Mar 2012 18:52:36 +0000
Subject: Re: $POST and $_SESSION
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-317040@lists.php.net to get a copy of this message
On 15 Mar 2012, at 18:48, sono-io@fannullone.us wrote: > On Mar 15, 2012, at 11:35 AM, Daniel Brown wrote: > >> On Thu, Mar 15, 2012 at 14:31, Stuart Dallas <stuart@3ft9.com> 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/

« previous php.general (#317040) next »