Get a Nokia 9110 Emulator from Yospace:
http://www.yospace.com/cgi-bin/login.pl
...but be careful, this is a WAP phone emulator, and some code I tried that worked on it did not work on my Samsung SCH-3500, which is HDML.
The new Wrox book is out. You might start there.
anywheretyougo.com is a great resource for WAP/WML/WMLScript/HDML, etc.
Adjust this and make it your index.php3 file on a live box:
<?PHP
if (strstr(strtolower($HTTP_ACCEPT), "text/vnd.wap.wml"))
Header("Location: http://www.yourdomain.com/1.wml");
elseif (strstr(strtolower($HTTP_ACCEPT), "hdml;version=3.0"))
Header("Location: http://www.yourdomain.com/1.wml");
else
{
if (strstr($HTTP_USER_AGENT, "Mozilla") ||
strstr($HTTP_USER_AGENT, "MSIE") ||
strstr($HTTP_USER_AGENT, "Opera") ||
strstr($HTTP_USER_AGENT, "Explorer"))
Header("Location: http://www.yourdomain.com/home.shtml");
else
Header("Location: http://www.yourdomain.com/1.wml");
}
?>
Steal some code for '1.wml' and you'll fork to wireless (phone) content. I don't know what kind of headers the Palm sends out, but that is another issue, eh?
Be sure to set MIME types for your root and all the directories that will supply wireless. Use this:
Mime Type : image/vnd.wap.wbmp to .wbmp
Mime Type : text/vnd.wap.wml to .wml
Happy motoring!