Hi,all

How to use PHP to check which browser the remote user is using? Because I want to put the correct style sheets according to the user's browser. For example, Netscape navigator doesn't like the style sheets so I must try to disable the style sheets or put another which is compatible with Netscape navigator.

Thanx in advance

    there's an environment variable:

    HTTP_USER_AGENT
    The browser the client is using to send the request. General format: software/version library/version.

    read it out using the getenv() function.

      or you can try the get_browser() function.

        Write a Reply...