Explore BrainMass

Explore BrainMass

    PHP - environment variables

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    (Using PHP)
    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.

    © BrainMass Inc. brainmass.com November 30, 2021, 12:08 am ad1c9bdddf
    https://brainmass.com/computer-science/php/php-environment-variables-22407

    Solution Preview

    Hello,
    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; ...

    Solution Summary

    This solution develops a program that determines whether the client is using Internet Explorer.

    $2.49

    ADVERTISEMENT