How to determine the browser of the user using PHP?

Posted by ron8 on Stack Overflow See other posts from Stack Overflow or by ron8
Published on 2010-04-17T12:05:59Z Indexed on 2010/04/17 12:13 UTC
Read the original article Hit count: 236

Filed under:
|
|
|

How to determine the browser of the user using PHP?

So that if the users browser is IE then the variable $alert="onbeforeunload" and if it is not IE, for example Firefox (else) then $alert="onload.

Help is much appreciated.

Thanks

Also please note that I can not install browscap.ini on my PHP server.

© Stack Overflow or respective owner

Related posts about php

Related posts about browser