php-mobile-detectorDetect the Mobile Phones Using the PHPUsageInclude File<?phpinclude'mobile.php'; ?>Detect Any Mobile Device<?phpinclude'mobile.php'; $mobile = newMobile(); if ($mobile->isMobile) { header("Location: m.yoursite.com"); } ?>Detect an Android Device<?phpinclude'mobile.php'; $mobile = newMobile(); if ($mobile->isAndroid) { header("Location: android.yoursite.com"); } ?>Detect an iPhone Device<?phpinclude'mobile.php'; $mobile = newMobile(); if ($mobile->isIphone) { header("Location: iphone.yoursite.com"); } ?>Other Detectable DevicesBlackberry = isBlackberry; Ipod = isIpod; Ipad = isIpad; Opera Mini = isOperaMini; Palm = isPalm; Windows = isWindows; Other = isOther; Detect an Android Device and Any Other Device at once<?phpinclude'mobile.php'; $mobile = newMobile(); if ($mobile->isAndroid) { header("Location: android.yoursite.com"); } elseif ($mobile->isMobile) { header("Location: m.yoursite.com"); } ?>ScreenshootsNot DetectedDetected an Android DeviceDetected an iPhone DeviceDetected an iPad Device