ID: 24730 Updated by: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php