PHP: getenv("HTTP_USER_AGENT") weirdness.

Glaanieboy

OSNN Veteran Addict
#1
I am trying to create a sig like on Danasoft. One of the things the script should show, is which browser the one that is watching the sig is using. I am playing around a bit, and I found out that my IE6 has this HTTP_USER_AGENT signature:
Code:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Why Mozilla? Is IE using pieces of Mozilla code? Or is IE in fact Mozilla?
 

X-Istence

*
Political User
#2
It has always identified itself as that, one of the more reasons some stats scripts think that the older mozilla's are in fact IE's.

Nothing weird about that. Normal to see that.
 
#3
To identify a browser as IE, just look for the MSIE string within the user agent string. The initial "Mozilla" string is used by all browsers.
 

SPeedY_B

I may actually be insane.
#4
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/85.7 (KHTML, like Gecko) Safari/85.6

I thought all browsers had the Mozilla/x.x ?
 

Maveric169

The Voices Talk to Me
#8
Google search for Unsupported Browser

ROTFLMAO

Unsupported Browser
We are very sorry, but our web site will not work with your browser. ... isn't feasible
to make this site do what MOST users need and work with ALL web browsers. ...
Description: Mayor, City Council, boards and commissions, and other information from city government.
Category: Regional > North America > ... > K > Knoxville > Government
www.ci.knoxville.tn.us/ - 3k - Nov 28, 2003 - Cached - Similar pages
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,300
Members
89,016
Latest member
Poseeut