Re: Note on Tutorial
| From: | Derick Rethans | Date: | Tue, 01 Nov 2005 10:24:59 +0000 |
| Subject: | Re: Note on Tutorial | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969370722@lists.php.net to get a copy of this message | ||
On Sun, 30 Oct 2005, Gernot Buselmeier wrote:
> I have a note on the contents at page
> http://www.php.net/manual/en/tutorial.useful.php .
>
> The page presents the $_SERVER array index as
>
> $_SERVER['HTTP_USER_AGENT']
>
> enclosed in "'". This is not working
>
> Only this form works: $_SERVER[HTTP_USER_AGENT]
Sorry, but you're incorrect. The one with quotes it the correct form,
the one without quotes is wrong (turn on all errors and you will see the
warning).
PS: Please also do not send HTML mail to any PHP list.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org