Re: user agent strings
| From: | heinisch | Date: | Thu, 13 Jul 2000 20:22:50 +0000 |
| Subject: | Re: user agent strings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6537@lists.php.net to get a copy of this message | ||
At 20:08 13.07.00 +0200, you wrote:
hi everyone 1. netscape's and microsoft's HTTP_USER_AGENT strings can be identified easily, but how do i extract the version of the browsers? 2. could you do me a favour and tell me what browser you're using and what string HTTP_USER_AGENT it outputs? maybe we can compile a list (if it's usefull). Aan97 Abdul-Kareem Abo-Namousyou could use JavaScript to get informnations about the browser <script language="JavaScript"> function get_browser() {
nameofBrowser=navigator.appName;
codeName=navigator.appCodeName;
Bversion=navigator.appVersion;
Blanguage=navigator.lanuage;
OS_Browser=navigator.platform;
B_http_name=navigator.userAgent;
}
</script>
...
<a href="next_page"?browsertype='win.document.write(nameofBrowser+codeName....)'> go ahead</a>
Oliver