Home / Web service / Web Program / Specifying the mobile connection path when
모바일접속경로

Specifying the mobile connection path when

Specifying the mobile connection path when

<?php

$mobileKeyWords = array (‘iPhone’, ‘iPod’, ‘BlackBerry’, ‘Android’, Windows CE ', Windows CE;’, ‘LG’, 'AGAINST', ‘SAMSUNG’, 'Sony Ericsson', ‘Mobile’, ‘Symbian’, ‘Opera Mobi’, 'Opera Mini', 'IEmobile');
for($i = 0 ; $i < count($mobileKeyWords) ; $i++)
{
if(strpos($_SERVER[‘HTTP_USER_AGENT’],$mobileKeyWords[$i]) == true)
{
header(“Location: http://my.blogkor.com”);
exit;
}
}
?>

The source can specify a different path when connected in a particular website by connecting you with a mobile computer.

 

기본적으로 PC에서 접속하면 blogkor.com 으로 접속한다면 모바일에서 접속했을때 모바일에 최적화 된 페이지를 작성하시고 모바일 페이지로 바로 넘겨주는 것이죠
See sources above..

Check Also

phpmyadmin 404

nginx phpmyadmin 404 Not Found

Suddenly in phpmyadmin nginx server 404 Not Found 오류 가 발생 한다면 그 동안 서버에

Leave a Reply

Your email address will not be published. Required fields are marked *