This simple script will determine what browser a person is using and redirect them to a different page based on their browser. First we need to decide what its going to do. Here is what I have planned:
Here is the PHP code for what I have written above:
<?
if ($name = strstr ($HTTP_USER_AGENT, "MSIE")) { //if its MSIE then
Header ("Location: http://www.www.jehanzeb.tk/"); //go to jehanzeb.tk
}
else { //if its something other than MSIE then
Header ("Location: http://www.yahoo.com/"); //go to to yahoo.com
}
?>