Ok lets started our short tutorial to make some application with our dummies WAP :P,
first download this emulator to see our result in coding with wap
http://jk-portal.wbl.sk/kl_wap15.zip
have you been downloaded these emulator? ok lets go to the next step, if you use vertrigo or phptriad add some file in http.conf
AddType application/x-httpd-php .php .phtml .php5
AddType application/x-httpd-php-source .phps
add with .wml so it will be look like this
AddType application/x-httpd-php .php .phtml .php5 .wml
AddType application/x-httpd-php-source .phps .wml
ok? after that just restart your apache
and lets begin the coding man :)
open your editor! use notepad or something else
<?
header("Content-Type: text/vnd.wap.wml");
echo "<?xml version=\\"1.0\\"?>";
echo "<!DOCTYPE wml PUBLIC \\"-//WAPFORUM//DTD WML 1.1//EN\\" \\"http://www.wapforum.org/DTD/wml_1.1.xml\\">";
?>
<wml>
<card id="hello">
<p>Today is
<?
echo date("m/d/Y");
?>
</p>
</card>
</wml>
save these file with you favourite name for example wapku.php
ok? after that open your emulator and locate your url to the root file, for example if i locate my file in folder wap, i am gonna write it in url like http://localhost/wap/wapku.php
and you will see our lovely output