View file readme.txt

File size: 2.7Kb
Bizzar WAP Detection with Debugger - Written by Brad Derstine ( [email protected] )  Version 1.0
Inspired and tested by: Joseph ( [email protected] )

Original code borrowed from -- http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/
Tested using WAP Emulator from -- http://tagtag.com/cgi/wapemulator.cgi

====================================

WHERE IT CAME FROM!!

After a request from a visitor from the site, I did a little research, found out what WAP was, then cleaned up a script from another site, and then wrote my own debugger for it.  The debugger is great if you need to find the name of the browser your using in the event a handheld doesn't work with your site!

====================================

HOW IT WORKS!!

The redirect script detects your browser, then redirects you accordingly.

However, it came to my attention that certain emulators and newer/older WAP browsers have a browser that isn't listed in the script. So what do you do then?? This is where the debugger comes into play. Just upload the 2 files to your server, renamed the htaccess.txt to .htaccess, then call them using your handheld or have the person who has a problem email you the results. For example, I used the TagTag.com WAP emulator because someone had said it didn't work with the detection script.

Sure enough, the browser name was "TagT" and that was not in the detection list. A quick change to the script, and now it is!

It's not a fully featured amazing script, but accomplishes what it sets out to do. What more could you ask?!

====================================

HOW TO INSTALL IT!!

Just upload the files to your server. Call them using either a HTML browser or a WAP device (or WAP emulator).

To debug, upload the debugger folder to your server, rename the htaccess.txt file to .htaccess, then call the PHP file from the WAP device to identify the browser.

====================================

WHAT CAN I DO WITH THE SCRIPT??

With cell phone and PDA use on the rise, so is the usage of WAP devices and browsers. However, it's nice to have a site that supports both of these protocols and this script is just one tool in your arsenal.  I could not list every browser in the script, so thus, I've written the debugger file to help you quickly and easily identify the browser name. If the name is in the list, then it's a problem with the redirection.

====================================

There are currently no questions associated with the script, however if you have a problem, feel free to stop by the site and let me know!

====================================

If you need help still, please visit http://www.bizzarscripts.net/forum and I have a support section set up.

-- Brad