PHP: getenv("HTTP_USER_AGENT") weirdness.


OSNN Veteran Addict
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:
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?


Political User
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.
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.


I may actually be insane.
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 ?


The Voices Talk to Me
Google search for Unsupported Browser


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 - 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
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 ...
What a long strange trip it's been. =)

Forum statistics

Latest member