Re: Help!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, April 28, 2006 8:57 am, T.Lensselink wrote:
>> In the demo version the script accesses the $_GET array - an example
>> value:
>>
>> $data[email]
>>
>> ..which works fine in the demo app. If I quote all the values thus
>> in the
>> new version:
>>
>> $data['email']
>>
>> ..the arguments appear in the correct order. I understand the second
>> format
>> is better to disambiguate constants but the former format works fine
>> for
>> the
>> demo version. Any reason for the discrepancy?

The demo is running on a badly-configured server with the default
value for error_reporting of E_ALL ~ E_NOTICE

So you never *SEE* the error notice message on the demo server --
because it's getting swallowed.

On the REAL server, which is properly configured with E_ALL, you are
seeing the E_NOTICE messages telling you that your code is broken
because not putting quotes there is just plain broken.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux