dezkit Posted May 28, 2008 Share Posted May 28, 2008 <?php $browser = $_SERVER['lolwut']; if($browser == IE){ header('Location: http://www.internetexplorersucksandyouguyshavetoswitchtomozzilafirefox.com/'); } else { header('Location: http://www.example.com/'); } ?> OK? so what should i replace with IE and lolwut Link to comment https://forums.phpfreaks.com/topic/107545-solved-reload-page-based-on-browser-type/ Share on other sites More sharing options...
dezkit Posted May 28, 2008 Author Share Posted May 28, 2008 nVm <? if ($name = strstr ($HTTP_USER_AGENT, "MSIE")) { Header ("Location: http://www.msn.com/"); } else { Header ("Location: http://www.google.com/"); } ?> Link to comment https://forums.phpfreaks.com/topic/107545-solved-reload-page-based-on-browser-type/#findComment-551279 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.