Possible Duplicate:
Redirecting to a new page when a user is using Internet Explorer
I'm working on a version of my website which renders properly in Internet Explorer; what would a PHP script, which automatically redirects users with an IE user agent to (for example) /index-ie.php, look like?
Try this :
You will get value 1 if it is internet explorer.
Try
PHP have function $_SERVER['HTTP_USER_AGENT'] used to identify browser
Hope this works:
you can use
strpos
function to search the string forMSIE
. ex,Get all information about user browser --