Re: Help!
| From: | Richard Lynch | Date: | Sat, 29 Apr 2006 08:34:01 +0000 |
| Subject: | Re: Help! | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235079@lists.php.net to get a copy of this message | ||
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