Re: $_REQUEST problem
From: Michael Fesser (netizen_at_gmx.net)
Date: 07/20/04
- Next message: haoren: "echo a string that contain <? and <?php"
- Previous message: Anders K. Madsen: "Re: Problem with sessions"
- In reply to: John Unleaded Smith: "Re: $_REQUEST problem"
- Next in thread: Gordon Burditt: "Re: $_REQUEST problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: haoren: "echo a string that contain <? and <?php"
- Previous message: Anders K. Madsen: "Re: Problem with sessions"
- In reply to: John Unleaded Smith: "Re: $_REQUEST problem"
- Next in thread: Gordon Burditt: "Re: $_REQUEST problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|