[Webdev] RE: WML+PHP+SQL=warm inner glow?

Anton Mc Kee amk at broadcom.ie
Wed Jun 28 12:25:33 IST 2000


No none at all. It's really was a hit and miss effort. Enclosed is a sample
script. BTW As well as having .php3 .php and .phtml files run trough the php
parser I added .wml to the apache config files. In theory you should be able
to just use .php files and get it to send a wml header, but Nokia fones in
particular were having none of it, well at least not here. As for the sql
stuff well it's just the same as any other site. fetch the sql and away you
go. BTW Nice site.

If I can help further maybe explain things in more detail let me know

Aj




<?
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";

if($news)
	{
	printf("<wml> <card id=\"MainCard\" title=\"Broadcom Tech News\"><p
align=\"center\">");
	printf(" <a href=\"http://wap.broadcom.ie/?newsarticle=2\">eircom announce
first quater results</a><br/>");
	printf("<a href=\"http://wap.broadcom.ie/?newsarticle=1\">Ericsson send
jini engine to China</a><br/>");
	printf(" <br/></p>  </card></wml>");
	}
else
	{

/* Print out a message to the wap user. */
printf("<wml> <card id=\"MainCard\" title=\"Welcome to Broadcom\"><p
align=\"center\">");
printf("<a href=\"http://wap.broadcom.ie/?news=true\">Telecom
News</a><br/>");
printf("<b>Sorry</b></br> But this Wap site is under construction.<br> Check
back real soon<br/></p>  </card></wml>");
	}
?>


> -----Original Message-----
> From: Kelly, Eoin [mailto:eoin.kelly at analog.com]
> Sent: Wednesday, June 28, 2000 12:16 PM
> To: amk at broadcom.ie
> Subject: WML+PHP+SQL=warm inner glow?
>
>
> Hi Anton-this is regarding a Q you posted to the Webdev list a
> while back-I'm in
> now the same position you were then-hoe did you get on? - are
> there any problems
> that I should be aware of? - any and all help greatly appreciated -eoin
>





More information about the Webdev mailing list