Page 1 of 1

detecting browser

Posted: Thu Mar 17, 2005 5:09 pm
by shiznatix
ok ya i use $_SERVER['HTTP_USER_AGENT'] and it gives me insaine amounts of stuff about the browser but all i want is the first word(s) up to the 1st / so it is just the browser name. using get_browser is not a option. im sure this is a preg_match situation but me/regular expessions = suicide due to insanity. help?

Posted: Thu Mar 17, 2005 5:12 pm
by feyd
explode() :P

Posted: Thu Mar 17, 2005 5:43 pm
by shiznatix
haha wow im a idiot

Posted: Thu Mar 17, 2005 6:03 pm
by John Cartwright
shiznatix wrote:haha wow im a idiot
dont be so hard on yourself, we all have moments 8)