Seldudet
08-25-2002, 08:06 PM
ok i downloaded that phpdev package from www.firepages.au.com that was suggested here, so that i could learn php. anyway i took the introductory tut on php.net and it told me to type this in
<?php echo $_SERVER["HTTP_USER_AGENT"]; ?>
it is supposed to return something such as this:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
but it didnt do anythign for me! i know php etc is working on my comp cuz <?php phpinfo(); ?> works.
so whats wrong with the $_SERVER["HTTP_USER_AGENT"]; and why doesnt ti work...i cant understand!
<?php echo $_SERVER["HTTP_USER_AGENT"]; ?>
it is supposed to return something such as this:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
but it didnt do anythign for me! i know php etc is working on my comp cuz <?php phpinfo(); ?> works.
so whats wrong with the $_SERVER["HTTP_USER_AGENT"]; and why doesnt ti work...i cant understand!