To build a mobile phone enabled site, your have few options. There's rich HTML version (HTML v.4.0) that supported by latest device such as Nokia Internet Table, Apple Iphone and Smart phone (PDA-phone). The middle version is xHTML which is supported by newer mobile phone (with colour screen). If you going to make it available on most phone models, use WML (wireless markup language). Latest version of WML is 1.3. A basic WML page would be looks like :
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<head>
<meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
</head>
<card title="{$page_title|htmlspecialchars}">
<p align="center"><img src="your-logo-here" alt=""/></p>
<p>
{$main_content}
</p>
</card>
</wml>

If you're going to build a transactional wap site, make sure your server is supported and registered by wireless service provider (telco) so any access to the site can be detected its msisdn (mobile subscriber isdn a.k.a phone number). This information and other useful header can be found on HTTP HEADER variable HTTP_X_FH_MSISDN values. If you're using PHP, you can read that as $_SERVER[HTTP_X_FH_MSISDN] vars. Variables the supplied from telco may vary. Please read the documentation.
To provide content that match to certain phone models, you can use User Agent Profile (UAProf) to identify certain specification of the phone. But due to every device manufactures has different standard, you can use WURFL to determine most phone capabilities and specification. Now you have all the information needed to build a wap site, wap charging and provide content as the device supported.
5 comments:
hi,
MSISDN did'nt show
$msisdn=$_SERVER['HTTP_X_FH_MSISDN'];
echo "MSISDN : ". $msisdn;
what wrong?
thanks a lot
The server var name may vary depend on the wap gateway used. Also, the availability is subject to telco policy. meaning some telco might require server registration before they pass such info. what country/telco you tried to get the info ?
Post a Comment