PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Rajesh Bhatia   WAP Redirect   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: WAP Redirect
Redirect mobile phone users
Author: By
Last change: Valid links are now getting used to give example.
Date: 14 years ago
Size: 683 bytes
 

Contents

Class file image Download
<?php
/**
* This is example file to implement wap redirection code
* @version 0.1
* @copyright (C) 2010 Rajesh Bhatia. All rights reserved
* @license http://www.gnu.org/copyleft/lesser.html LGPL License
* @author Rajesh Bhatia <rajesh123bhatia@gmail.com>
**/
require_once("wapRedirect.php");
// First parameter to constructor is for PC
// Second parameter to constructor is for WAP
// Third parameter to constructor is for iPhone
// Forth parameter to constructor is for Play station
$objRedirect = new redirectWAPPC("google.com","m.google.com","m.google.com","m.google.com");
if(!isset(
$_SESSION['redirect_implemented'])){
           
$objRedirect->ImplementRedirect();
}
?>