I'd personally do it in PHP. But there aren't standard wap browsers unfortunately (ie in real PC's, you'd only really ever see IE, Netscape, Mozilla etc). I don't know of a fully comprehensive list of browser identities, but these should get you started: from http://allnetdevices.com/faq
<? $browser=substr(trim($HTTP_USER_AGENT),0,4); if($browser=="Noki") // Nokia phones and emulators if($browser=="Eric") // Ericsson WAP phones and emulators if($browser=="WapI") // Ericsson WapIDE 2.0 if($browser=="MC21") // Ericsson MC218 if($browser=="AUR ") // Ericsson R320 if($browser=="R380") // Ericsson R380 if($browser=="UP.B") // UP.Browser if($browser=="WinW") // WinWAP browser if($browser=="UPG1") // UP.SDK 4.0 if($browser=="upsi") // another kind of UP browser if($browser=="QWAP") // unknown QWAPPER browser if($browser=="Jigs") // unknown JigSaw browser if($browser=="Java") // unknown Java based browser if($browser=="Alca") // unknown Alcatel-BE3 browser (UP based?) if($browser=="MITS") // unknown Mitsubishi browser if($browser=="MOT-") // unknown browser (UP based?) if($browser=="My S") // unknown Ericsson devkit browser ? if($browser=="WAPJ") // Virtual WAPJAG www.wapjag.de if($browser=="fetc") // fetchpage.cgi Perl script from www.wapcab.de if($browser=="ALAV") // yet another unknown UP based browser ? if($browser=="Wapa") // another unknown browser (Web based "Wapalyzer"?) ?> This is only a selection of browsers though, and the browser type wouldn't help u I don't think. For example, I take it you are asking with means to identify the screen size etc? Nokias use the same browser I believe but have different screen sizes for different models. In the same respect, you can't find out a PC users screen size through PHP, javascript, or anything else you please. Javascript doesn't work on WAP phones. Forget that. You're thinking of WMLscript, not too sure about that side of things. There should be enough there to get u going, either way, it ain't PHP anymore so you'll probably find better help on wap/wml forums instead. Good luck R LaserJetter wrote: > > Thanks! They've been useful. > > How do I detect whether a WAP browser is being used? I know how to check > whether Netscape or IE is being used via JavaScript. Is this how to do it > with WAP? > > "Ross Fleming" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > This is part of my final year project at university, so hopefully I'll be > > able to help you. Some pointers... > > > > 1. visit http://www.allnetdevices.com/faq/ for wml info > > 2. never assume the size of a WAP phone screen, no two are alike. > > 3. keep the pages TINY! WAP phones have very little memory, and don't > handle > > big pages at all. > > 4. generating wml pages from php. Basically, you have to have a .php file > > that creates html content. At the above webpage there is a php script > that > > determines whether a wap browser is opening the page and directs it > > accordingly. > > 5. atart any php/wml pages with <? > header("Content-type=text/vnd.wap.wml"); > > ?> and it's now a page a phone will accept. > > 6. as for the porting all your files to wml, then that is VERY difficult > to > > do. I'm not even sure PHP could do it. This is what my project is all > > about and I'm not using PHP for the conversion. It's harder than you > might > > think to do. Professional software can do this for you (I believe IBM has > a > > solution but it costs a bomb) but I'd consider having a wap site and web > > site, with an index.php file at the root that sends the user to the > correct > > version (using the script at 1.) > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]