Welcome to WebmasterWorld Guest from 54.227.125.200

Forum Moderators: bakedjake

Message Too Old, No Replies

Having a mobile version of a php scripted website

Mobile web pages, php

     

walstib

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

5+ Year Member



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

Samizdata

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

WebmasterWorld Senior Member 5+ Year Member



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]

jtara

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

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



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?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month