Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] user agent strings From: heinisch (creaction <email protected>)
Date: 07/13/00

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-Namous

you 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>