Develop a program that determines whether the client is using Internet Explorer. If so, determine the version number and send this information back to the client.
There are several ways in which you can determine the browser type and its version and display it on the clients terminal.All of these methods are related to the '$HTTP_USER_AGENT' variable in a way or the other.The variable $HTTP_USER_AGENT is automatically set in all PHP scripts that are run by a Web server. The string contained in that variable can be used to identify the browser responsible for the page request. For example, the $HTTP_USER_AGENT string produced by Netscape 6.2 running on Windows is as follows:
Mozilla/5.0 (Windows; U; ...
This solution develops a program that determines whether the client is using Internet Explorer.