Monday, November 23, 2009

php website for mobile devices

When it comes to making a website for mobile devices, a lot of things needs to be throw out of your site. :)

mobile devices are powered by low power processors; something which your laptop or desktop computer is far more advanced with.

Steps:

Place a detection on your index.php page (or your homepage) to redirect mobile users to a different site. Typically, your mobile version of site will begin with http://m.mysite.com

The mobile site should use 1 column layout for development. You cannot build a website with multiple columns (since mobile browsers decode html differently on many occassions; you do not want to mess up your site)

Use images which are low resolution, but suitable for viewing on mobile devices. In mobile devices, every penny counts when it comes to size of website. It is best to get rid of images which are around 50kb or more for mobile devices.

use lightweight css. (prevent mobile processors from doing a lot of job for you. So use, lightweight css for your website to load up faster on mobile devices.)

Below are links that can help you get started.

Redirect php website to mobile device

Developing light weight css for php website on mobile devices

PAMP (Open source by nokia for mobile devices)

No comments:

Post a Comment