#24730 [Bgs]: Error in "http://at2.php.net/manual/es/tutorial.useful.php"
| From: | philip@php.net | Date: | Sun, 20 Jul 2003 21:57:46 +0000 |
| Subject: | #24730 [Bgs]: Error in "http://at2.php.net/manual/es/tutorial.useful.php" | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969355402@lists.php.net to get a copy of this message | ||
ID: 24730
Updated by: philip@php.net
Reported By: matosale at yahoo dot com
Status: Bogus
Bug Type: Documentation problem
Operating System: WindowsXP
PHP Version: Irrelevant
New Comment:
And from that page, immediatly above the quoted example:
Notas acerca de PHP Autoglobals: $_SERVER es una variable reservada
por PHP que contiene toda la información del servidor de web. Es
conocida como Autoglobal (o Superglobal). Lee el manual en la sección
titulada Autoglobals para mas información. Estas son variables
especiales que son introducidas en la versión 4.1.0 de PHP. Antes
podíamos usar los, $HTTP_*_VARS arrays, tales como $HTTP_SERVER_VARS.
Aunque estos han sido despreciados, estas antiguas variables todavía
existen. (También puedes mirar las notas relacionadas acerca del viejo
código.)
Previous Comments:
------------------------------------------------------------------------
[2003-07-20 16:25:49] alindeman@php.net
You are probably not using a version of PHP that has superglobals ( <
4.1.0). Upgrade!
------------------------------------------------------------------------
[2003-07-20 16:15:24] matosale at yahoo dot com
Description:
------------
In the spanish version says:
<?php echo $_SERVER["HTTP_USER_AGENT"]; ?
and it doesn't work. A friend of mine says that it should be like
this:
<?php echo $HTTP_USER_AGENT ?>
when i put it like this it did work :o)
Reproduce code:
---------------
<?php echo $_SERVER["HTTP_USER_AGENT"]; ?
Expected result:
----------------
Opera/7.11 (Windows NT 5.1; U) [es-ES]
Actual result:
--------------
NOTHING
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24730&edit=1