edgefield
Dec 28 2004, 16:55
is it possible to redirect all mobile devices to a wap page, when a address that would normaly bring up a normal page in a pc browser is enterd???
.fahim
Dec 28 2004, 21:11
yeah you can...
either by content type they accept or by user agent detection.
For nokias:
CODE
if (strstr($_SERVER["HTTP_USER_AGENT"], "Nokia") != false)
{
header("Content-Type: text/vnd.wap.wml");
echo "wap page";
}
else
{
echo "normal page";
}