I am writing for information about making my web presence available to mobile browsers. I currently have a website that is written in PHP. Are there any tools out there that could convert PHP to xhtml or wml or does this require hard coding?
Almost all phones are WAP enabled and it is possible to create WML on the fly using XSLT, but my personal preference is to serve alternate content that suits the limited capabilities of WAP browsers.
For a "one web" solution simple XHTML Transitional seems to be supported by the largest number of browsers (as far as I can tell) but if you don't need the Japanese market then HTML 4.01 with alternative stylesheets should be fine. XHTML Mobile Profile is a waste of time in my experience.
Much depends on your content, and mobile web browsing is changing fast. Good luck.
[edited by: Samizdata at 3:19 pm (utc) on Sep. 16, 2007]
tools out there that could convert PHP to xhtml or wml
Does not compute....
PHP is a server-side computer language. You write programs in PHP. PHP programs typically create HTML as output, but might also create plain text, XHTML, WML, whatever.
XHTML and WML are presentation languages. They are used to format text for presentation.
There's no possible way to "convert PHP to xhtml or wml". They don't do the same thing, and don't have equivalent functionality.
The right question is "how do I adapt my website - written in PHP - to accommodate mobile browsers using xhtml and/or wml?
Unfortunately, we can't answer that question with the information you've given. We don't know anything about your PHP software. Was it custom-written for you? Are you using a CMS or blog software written in PHP? Some other software package written in PHP?