So I've been working on doing a bunch of WAP stuff, and got sick of trying
to output WAP code in PHP. I started looking around for PHP libraries that
implemented WAP on a level that was beyond my experience, did a lot of
stuff that was cool/interesting, and that was actively maintained.
I found HAWHAW, the "HTML and WML hybrid adapted Webserver -- a toolkit to
create universal mobile applications."
Now at first, I was thinking "I really don't want another webserver." No
worries, it's not, although you could call it that.
Anyway, you can download it here:
http://www.hawhaw.de/
HAWHAW is really more than just a WML library though. It allowed me to
build a really nice application with minimal WML/XHTML work. It
automagically detects what the browser can handle -- HTML, WML, HDML, VXML
-- and then what kind of output you might want -- bigscreen, wap, hdml,
pda, imode, mml, voicexml, xhtml, lynx, up (for UP browser), owgui
(Openwave GUI), and pxv (Public Voice XML) -- and displays a great looking
deck/page in any case I could throw at it.
This is a fantasic way to be able to write a single app that will handle
the user in an intelligent fashion.
A sample doc:
$url = "/download/link";
$page = new HAW_deck("Page Title");
$page->set_bgcolor("white");
$page->set_disp_bgcolor("white");
$page->set_border(1);
$page->disable_cache();
$logo = new HAW_image("/images/logo.wbmp", "/images/logo.gif", "Logo");
$logo->set_br(1);
$page->add_image($logo);
$page->add_text(new HAW_text("Content Download", HAW_TEXTFORMAT_BOXED));
$text1 = new HAW_text($title." is now available for download. ");
$text1->set_br(1);
$page->add_text($text1);
$page->add_link(new HAW_link("Download NOW!", $url));
$page->create_page();
And it looks great on my phone, my friends Treo, and in my browser, without
any more thought than what I want to say.
Anyway, I'm using it, and I think it is great, and thought I would share.
Beckman
---------------------------------------------------------------------------
Peter Beckman Internet Guy
[EMAIL PROTECTED] http://www.purplecow.com/
---------------------------------------------------------------------------