Simple question.... P.s: Sorry for the multiples questions
How to detect a Wap Browser ? Thanx
if ((strstr(strtolower($HTTP_ACCEPT), "text/vnd.wap.wml")) { //wapbrowser }
also you have "hdml;version=3.0"
Sorry it's been so long. I just use this:
<?PHP if (strstr(strtolower($HTTP_ACCEPT), "text/vnd.wap.wml")) Header("Location: http://www.domain.com/file.wml"); elseif (strstr(strtolower($HTTP_ACCEPT), "hdml;version=3.0")) Header("Location: http://www.domain.com/file.wml"); else { if (strstr($HTTP_USER_AGENT, "Mozilla") || strstr($HTTP_USER_AGENT, "MSIE") || strstr($HTTP_USER_AGENT, "Explorer")) Header("Location: http://www.domain.com/file.html"); else Header("Location: http://www.domain.com/file.wml"); } ?>
An elaborate example can be found at:
http://allnetdevices.com/faq/?pair=04.006
Misja