[Webdev] [WAP]+[PHP] Question.

Anton Mc Kee amk at broadcom.ie
Tue Jun 20 17:22:13 IST 2000


Hi I am trying to set up a wap site at the moment. Now I had it working
using plane old wml files and the like and that was cool. But now I have
decided to be a bit smarter as I wanted to have "Dynamic" content displayed,
ie news etc. SO what I am doing now is getting apache to parse all wml docs
as php files. And the php to tell the phone that its a wml doc is the
following:

<?
/* Send a wml header to client. *?
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" .
	" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";

?>


However I am unsure as to how to go about handeling dbase connections. Is it
the same or could there be problems with some clients getting urls like:

index.wml?news=123

Any help welcome
Thanks
Aj

Anton Mc kee
Broadcom Eireann Research ltd
Kestrel House
Clanwilliam Place
Dublin 2
Phone +353 (0)1 6046052
http://www.broadcom.ie





More information about the Webdev mailing list