Return to Snippet

Revision: 38201
at December 28, 2010 12:40 by jaredyeo


Initial Code
<?php
require_once("mdetect.php");
$uagent_obj = new uagent_info();
$is_mobile = $uagent_obj->DetectSmartphone();
ob_end_flush();
if ($is_mobile)
	echo "<meta http-equiv=\"refresh\" content=\"0;URL=http://m.google.com\">";
else
	echo "<meta http-equiv=\"refresh\" content=\"0;URL=http://google.com\">";
?>

Initial URL
http://simplistika.com

Initial Description

                                

Initial Title
PHP redirect without javascript

Initial Tags
javascript, php, redirect

Initial Language
PHP