Welcome to WebmasterWorld Guest from 54.145.80.57

Forum Moderators: bakedjake

Message Too Old, No Replies

Having a mobile version of a php scripted website

Mobile web pages, php

     
11:46 am on Sep 16, 2007 (gmt 0)

New User

10+ Year Member

joined:July 17, 2006
posts:27
votes: 0


Hello all,

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?

Can someone suggest a tutorial?

Thanks,

~Walstib

3:15 pm on Sept 16, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month

joined:Aug 29, 2006
posts:1312
votes: 0


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.

Most new phones can handle HTML 4.01 to some extent, but JavaScript support varies, rich media is always problematic, and some devices use proxy services to mangle your pages. I prefer to serve alternate content to any small-screen device, including the iPhone.

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]

4:31 pm on Sept 16, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member jtara is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 26, 2005
posts:3041
votes: 0


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?