On 15 Mar 2012, at 18:48, sono...@fannullone.us wrote:
> On Mar 15, 2012, at 11:35 AM, Daniel Brown wrote:
>> On Thu, Mar 15, 2012 at 14:31, Stuart Dallas <stu...@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.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php