PDA

View Full Version : WAP detect phone type - how to do that?



Thanh
04-06-2003, 08:08 AM
Hello :)
I am not a programmer, and i came across something which could be usefull for many of us. It is about WAP sites which seem to "detect" what phone is accessing them. Example:
http://wap.t-online.de go to "sports" section, then to "Formel 1"
On a "normal" Nokia this is standard black on white, no graphics, just plain text.
On a 6610/7250 it is coloured and even has a full-colour picture of a formula-one driver!
Also http://wap.mobilelife.co.th which is the homepage of my provider, It also is standard black on white with text links on a 6510 but coloured with coloured graphics (icons) on a colour screen model.
How do the WAP sites detect which phone model accesses them? As there is the same adress, no extra for colour version or standard. As far as i know, the WAP browsers in a 6510 and a 6610 are the same? Or am i wrong and the site is default coloured and the 6610 just can display it while the 6510 (lack of colour screen) defaults to black on white?
Even my own WAP site (http://tagtag.com/aod-thanh) shows available links in blue on the 6610! I did not edit that somehow, it is kind of default?
Also, does anyone know of a FREE WAP-site host that allows the use of colour graphics/jpg's? As TagTag allows only the upload of wbmp's.
Thanks in advance......
your Thanh

kaos
10-06-2003, 05:48 PM
They use serverside scripting like php, perl, cgi to check the browser agent infoz in the http request. I also done some php wap scripts. Any host allows php is able to host wap sites easily.
What you need is to learn PHP.

edph
11-06-2003, 07:21 AM
you can start learning and building your own php-wap site at
http://www.lycos.co.uk/ i heard they give free php & mysql webhosting

And here is a free script to get you going available at
http://jonroig.com/modules.php?op=modload&name=News&file=article&sid=74


-----------------
My Homepage (http://www.edph.f2o.org/index.php)