dotMobimobiThinkingmobiForgemobiReadyDeviceAtlasgoMobi

Posted by dj001 1 year 28 weeks ago

pic
 dj001
mobiForge Enthusiast
Posts: 15
Joined: 3 years ago
[offline]

I am using this .php

<?php
 
$browser = $_SERVER['HTTP_USER_AGENT'];
 
$agent = substr($browser, 0, 7);
$iphonesub = substr($browser, 13, 6);
 
if($iphonesub == "iPhone") {
$agent = $iphonesub;
}
 
switch($agent) {
case "Mozilla":
    header("Location: playlist.htm"); // this is where you put the page you want desktops to see
    break;
case "iPhone":
    header("Location: Imain.htm"); // this is where your iPhone page goes
    break;
default:
    header("Location: Pmain.htm"); // this is where your page for mobiles goes
    break;
}
?>

which redirects anyone navigating to my homepage to customized iPhone, PC, or other smartphone pages, sized to look nice in the specific display. However, with Nokia smartphones, it gets screwed up somehow. Does anyone know the case name for Nokia that I should use, if I want to add another case and customized Nokia page?