Professional Documents
Culture Documents
Readme
Readme
What is it?
-=-=-=-=-=-=-=-=-=-=-=-=-=-
Automatically convert your existing website to a mobile website. phpMobilizer op
erates similar to many of the mobile website converters available, but it runs o
n your own server.
The goal of the project is to make it as universal as possible. Just drop the fi
les into a subdomain for automatic conversion. Add just one line of PHP to your
main site if you want automatic redirection to the mobile site when someone acce
sses it with a phone or mobile device.
Requirements
-=-=-=-=-=-=-=-=-=-=-=-=-=-
PHP 5
Apache (.htaccess/mod_rewrite capable).
Installation instructions
-=-=-=-=-=-=-=-=-=-=-=-=-=-
More details are available on the project page at http://code.google.com/p/phpmo
bilizer/
Create a subdomain called 'm' for your website.
Upload the files in the m folder to the m subdomain.
If you would like to automaticaly redirect users to the mobile site if they are
accessing it with their phone, add the following to a main include file or your
index.php file on your main site.
require_once('/home/path/to/subdomain/m/mobilize.php');
php-mobile-detect
-=-=-=-=-=-=-=-=-=-=-=-=-=-
This project uses the php-mobile-detect project for mobile browser detection.
For more information, see: http://code.google.com/p/php-mobile-detect/