Re: $_REQUEST problem

From: John Unleaded Smith (test_at_test.com)
Date: 07/20/04


Date: Tue, 20 Jul 2004 14:14:40 +1000

kingofkolt wrote:

> "melty" <m@lty.com> wrote in message news:1090294263.937002@hkpu01...
>
>>This line of code make an "Undefined index" error on my PC, however it is
>>okay on my friend's PC.
>>Anyone has this experience?
>>
>>
>>$somevar = $_REQUEST["name"];
>>
>>
>>
>
>
> Try accessing the page with a query string of "?name=foo" or sending a
> $_POST variable called "name"...
>

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.



Relevant Pages

  • Re: Information about notices
    ... "Eamon Reyn" wrote in message ... > PHP, JavaScript MySQL, Apache, REST and a couple of other technologies. ... > of this info if someone knows some good web links about this sort of stuff ... I keep error reporting set to E_ALL while developing and shut ...
    (alt.php)
  • Re: error reporting
    ... That depends on what you mean by turning off error reporting. ... display_errors to 0 means simply that PHP won't display error message. ...
    (comp.lang.php)
  • Re: Phpnuke module.php vulnerability and php error_reporting issue
    ... This is a known vulnerability for quite some time now. ... there are many Cross site scripting issue on Phpnuke modules ... > and other web application using PHP. ... > This crafted url cause the module.php script to make an PHP error reporting ...
    (Bugtraq)
  • Re: createimagefromstring / createimagefromjpeg
    ... doesn't mean you can use createimage(). ... That can take significantly more memory. ... The first thing you should do is enable all error reporting and display errors. ... Is there any way to overcome the inherent 2 GB limit in PHP? ...
    (comp.lang.php)
  • Re: Information about notices
    ... >>PHP, JavaScript MySQL, Apache, REST and a couple of other technologies. ... >>basic situation is I am the third student to work on this project and I am ... >>of this info if someone knows some good web links about this sort of stuff ... I keep error reporting set to E_ALL while developing and shut ...
    (alt.php)