Is it possible to detect that IE is in useragent compatibility mode with PHP ?
I am using IE10 and have useragent
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Thus, it appears as Internet Explorer 7.
Of course, it would be a bad idea to rely only on such PHP detection, but it is very useful for some ocasions (for example, registering with PHP or debugging hints, ...)
From this resource: http://msdn.microsoft.com/en-us/library/ie/hh869301(v=vs.85).aspx
IE 10 , IE 7, Trident/6.0, IE 10 .
Trident/6.0
PHP, Trident/6.0.
Internet Explorer Trident: IE9 Trident/5.0, IE 8 Trident/4.0, IE 7 Trident .
Trident/5.0
Trident/4.0
$_SERVER['HTTP_USER_AGENT']. .
$_SERVER['HTTP_USER_AGENT']
IE10:
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Trident/6.0)
, MSIE , Trident . , .
, .
-, , - IE. UA , UA, IE-, .
-, (.. ) (.. ) dev; IE8, IE10.
, UA - ; , , .
. IE, , ; . , , , X-UA-Compatible.
X-UA-Compatible
, ; , . , IE10.
Source: https://habr.com/ru/post/1754036/More articles:How to create a SystemSoundID array - objective-cModeling side effects using threads - functional-programmingCx_Oracle problem trying to import python - pythonHow to create a SystemSoundID array? Using AudioToolbox Infrastructure - objective-cDetecting IE browser version using PHP - browserAndroid configuration screen during installation - androidКак использовать пользовательскую Android ViewGroup в XML? - androidNinject how to access the kernel for instantiation? - asp.net-mvcGroup a collection of items in Colorbox - jqueryjQuery / Ajax call - it does not work on IE7 - jqueryAll Articles