Help - Search - Members - Calendar
Full Version: Wap
Neowin Forums > Help & Discussion Center > PDA, Tablet & Mobile Devices
edgefield
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
yeah you can...

either by content type they accept or by user agent detection.
mikey
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";
}
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.