Here's a fun little thing I discovered, possibly a bug in PHP itself?

To output a WAP page you must output a content-type header else the phone's
browser won't recognise the page. Dead simple. Use:

header("Content-type: text/vnd.wap.wml");

And all is well and good as long as you use echo/printf etc to output your
page. The second you deviate out of PHP and back to HTML the content-type
gets overwritten with a text/html, and so the page doesn't work.  ASP used
to be able to cope with this, is it a bug or something I'm doing wrong?

--
Rick Hodger



-- 
PHP General 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]

Reply via email to