Device Check Redirect
Author: Andy Gardner
1. Introduction
This script allows users to be redirected to a different web page if they are viewing from a mobile media device.
*You must have PHP 5 or later. Only those versions support SimpleXML, which is required for this script to operate.
2. Components
The only component that should need to be altered is the configuration file.
The components are as follows.
3. Configuration
The configuration file specifies the target that the page for mobile devices uses.
4. Data Definition
This is the XML necessary to generate the above configuration file.5. The Script
The script checks to see if the visitor is using one of the following browsers: Mozilla, Firefox, IE, Opera, and Safari. If he/she is, then nothing happens; otherwise, he/she is redirected to the mobile page.- device-check-PHP.zip
This zip file contains the necessary scripts and XML for PHP. - device-check-redirect-config-data-def.xml
This is a data definition to visually configure the XML config file. - device-check-redirect-config.xml
This is an example XML config file. - device-check-redirect-php.txt
This is the main PHP script that checks the header agent.
Last modified on Fri, 08 Sep 2006 13:22:18 -0400
Top / Up / Table of Contents