PDA

View Full Version : Variable to tell script if a WAP phone is accessing...


lord_raven
03-15-2003, 01:15 AM
Is there a variable that tells a PHP script that a WAP enabled phone is accessing it? I'm using HTTP_USER_AGENT, but that doesn't seem like it's very efficient and not all phones show the same info in HTTP_USER_AGENT...

lord_raven
03-15-2003, 06:24 AM
I think there's database problems or something... I got 2 notifications from this thread and niether post showed up...

brothercake
03-15-2003, 03:02 PM
I posted a response, but when I read it back to myself, all it really said was "I don't know" :(

The gist of what I put was that *i think* what you need to do is find a way of detecting the input protocol (http or wap) and use that to select your xsl stylesheet; but I have no idea how to do that - and in fact, I don't think Apache supports the WAP protocol without extensions - ie, if you're expecting to be able to serve WML pages to mobile phones through the HTTP protocol, well, you can't (afaik)