html to wap gateway

05/20/04 17:08:43 * *

Some time ago I wrote a small script which allows to view normal webpages with the integrated wap browser of mobiles, because my providers has a wap flatrate, but no web flatrate.
The result is a small php tool which allows to convert arbitrary urls to wap pages.
You can use it like this: http://w.l4x.org/<url>.
So, for example http://w.l4x.org/slashdot.org
This works quite nice, also with pictures, if you've an jpg enabled mobile. For the page with pictures try:
http://w.l4x.org/i&slashdot.org.

Some time ago I wrote a small script which allows to view normal webpages with the integrated wap browser of mobiles, because my providers has a wap flatrate, but no web flatrate.
The result is a small php tool which allows to convert arbitrary urls to wap pages.
You can use it like this: http://w.l4x.org/<url>.
So, for example http://w.l4x.org/slashdot.org
This works quite nice, also with pictures, if you've an jpg enabled mobile. For the page with pictures try:
http://w.l4x.org/i&slashdot.org.
The source will turn up in the files section, when I've got a chance to clean it up a bit.
Technically the script just retrieves the url given, removes all offending tags and converts links in such a way, that they point back to the script itself. Also, most phones cannot cope with pages bigger than 2000 chars. Therefore, the page is also trimmed in pieces and navigation links are supplied to scan through the page.


There are three modes:

  • Plain text (go.php?t&<url>)
  • Text with links and some basic attributes (go.php?<url>). This is the default mode.
  • Text with links and pictures (go.php?i&<url>)

You can use the short form, because my apache server does rewrite requests to http://w.l4x.org/ which don't exists to the script 'go.php'.
It also works with Mozilla, IE & co. because the script detects if your browser is capable of wml.

Page 1 / 1
Show other versions of this story

Attached file(s):

Add Comment


(will be hidden)

very nice nice okay not so okay bad awful
Text:

Your IP address will be recorded