Hi, i need a good redirect script web/wap
Redirect script
Collapse
X
-
If I'm right.
Than please use this topic
http://coding-talk.com/f29/how-block...-wapsite-5640/
Now i think your problm is solved out....Sandeep DiL (INDIAN)

Comment
-
Originally posted by NickJR View PostHi, i need a good redirect script web/wap
PHP Code:<?php global $userBrowser; // Your wapsite $wmllink = "wap/index.php"; // Your website $htmllink = "web/index.php"; //Detect the browser $userBrowser = $_SERVER['HTTP_USER_AGENT']; //echo $userBrowser; if(strpos(strtoupper($HTTP_ACCEPT),"VND.WAP.XHTML+XML") > 0) { $ub="pc"; } else if(strpos(strtoupper($HTTP_ACCEPT),"XHTML+XML") > 0) { $ub="pc"; } //Check for Mozilla else if(stristr($userBrowser, 'Mozilla')) { $ub="pc"; } //Check for msie else if(stristr($userBrowser, 'msie')) { $ub="pc"; } //Check for IE else if(stristr($userBrowser, 'internet explorer')) { $ub="pc"; } //Check for opera else if(stristr($userBrowser, 'opera')) { $ub="pc"; } //Check for Opera else if(stristr($userBrowser, 'Opera')) { $ub="pc"; } else { $ub="pc"; } if($ub == "pc") { header("Location: ".$htmllink); exit; } else { header("Location: ".$wmllink); exit; } ?>Find me on facebookPHP Code:/* I don't know everything hehe */
Comment
Comment