Re: $_REQUEST problem

From: Michael Fesser (netizen_at_gmx.net)
Date: 07/20/04


Date: Tue, 20 Jul 2004 16:14:23 +0200


 .oO(John Unleaded Smith)

>A high level of error reporting will also cause PHP to print those
>messages/warnings.
>
>In php.ini;
>
>error_reporting = E_ALL & ~E_NOTICE
>
>should suffice.

Not on a development system. Better fix the problem instead of turning
off notices.

$somevar = isset($_REQUEST['name']) ? $_REQUEST['name'] : '';

Even if it's "only" a notice, it's possible that the code does not
exactly do what you expect it to do. Fixing notices prevents some hard
to find bugs.

Micha



Relevant Pages

  • Re: irritating problem - suggestions?
    ... Got an elderley couple's PC in at the moment to fix, and it's turning ... I'd plugged in their usb printer and usb mouse, ... I know how it feels to be faced with someone who hasn't done anything right - no backups, no CDs, data in a foul tangle - who looks at you with big eyes hoping you'll be able to fix it for beer money. ...
    (uk.comp.homebuilt)
  • Re: Memory leak problems
    ... Suffice to say, the right ... windows were destroyed. ... Oh, about the underscores thing... ... And I will fix it, once these other more pressing problems are ...
    (comp.lang.cpp)
  • Re: Real-Time Preemption, -RT-2.6.12-final-V0.7.50-24
    ... >> What can be causing the following message to appear in dmesg and ... >> how can I fix it? ... > turning off power management and see if you still have problems. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Sony 42xbr900 ~~~PLEASE HELP~~~
    ... and i am getting really sick of people shrugging their shoulders and ... making a comment like "Have you tried turning off and then turning ... Just off center to the left is a verticle bar about 3 in width. ... I'd fix it with a hammer. ...
    (sci.electronics.repair)
  • Re: Mystery rebuilds
    ... It seems to happen the first time I debug after turning my pc on in the ... "Mark Heaton" wrote: ... > Can MS fix this please!!! ...
    (microsoft.public.vsnet.general)