php-general | 2000071
Date: 07/13/00
- Next message: Chris Adams: "Re: [PHP] A really fun one"
- Previous message: Michael Teter: "Re: [PHP] why is this not a bug? (popen, pclose)"
- In reply to: Abdul-Kareem Abo-Namous: "[PHP] user agent strings"
- Next in thread: Meir Kriheli: "Re: [PHP] php.ini search path?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Chris Adams: "Re: [PHP] A really fun one"
- Previous message: Michael Teter: "Re: [PHP] why is this not a bug? (popen, pclose)"
- In reply to: Abdul-Kareem Abo-Namous: "[PHP] user agent strings"
- Next in thread: Meir Kriheli: "Re: [PHP] php.ini search path?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

