모바일 접속 로그
"Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; ko-kr) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16"
모발일로 접속하면
Mobile 이게 다 포함되나요?
모발일로 접속하면
Mobile 이게 다 포함되나요?
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 20개
http://tong.sir.co.kr
로 접속 좀 해주세요. ㄳ
리자님 이런글 청소좀 해주세요..
구글에 가니까 접속로그만 통계내는 프로그램이 꾸준히 업데이트 되고 있더라구요.
function get_os($agent)
{
$agent = strtolower($agent);
//echo $agent; echo "<br/>";
if (preg_match("/windows 98/", $agent)) { $s = "98"; }
else if(preg_match("/windows 95/", $agent)) { $s = "95"; }
else if(preg_match("/windows nt 4\.[0-9]*/", $agent)) { $s = "NT"; }
else if(preg_match("/windows nt 5\.0/", $agent)) { $s = "2000"; }
else if(preg_match("/windows nt 5\.1/", $agent)) { $s = "XP"; }
else if(preg_match("/windows nt 5\.2/", $agent)) { $s = "2003"; }
else if(preg_match("/windows nt 6\.0/", $agent)) { $s = "Vista"; }
else if(preg_match("/windows nt 6\.1/", $agent)) { $s = "Windows7"; }
else if(preg_match("/windows 9x/", $agent)) { $s = "ME"; }
else if(preg_match("/windows ce/", $agent)) { $s = "CE"; }
else if(preg_match("/linux/", $agent)) { $s = "Linux"; }
else if(preg_match("/sunos/", $agent)) { $s = "sunOS"; }
else if(preg_match("/irix/", $agent)) { $s = "IRIX"; }
else if(preg_match("/phone/", $agent)) { $s = "Phone"; }
else if(preg_match("/bot|slurp/", $agent)) { $s = "Robot"; }
else if(preg_match("/internet explorer/", $agent)) { $s = "IE"; }
else if(preg_match("/mozilla/", $agent)) { $s = "Mozilla"; }
else if(preg_match("/macintosh/", $agent)) { $s = "Mac"; }
else if(preg_match("/iphone/", $agent)) { $s = "iPhone"; }
else if(preg_match("/iPod/", $agent)) { $s = "iPod"; }
else { $s = "기타"; }
return $s;
}
이건 SPH-W8400 폰 이겠지요? ㄳ
http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones
감사합니다.
이건가 봅니다. ㄳ
어느분인가요? 손!!!
이렇게 나오네요. ㄳ
근데 User Agent를 아이폰으로 해놨습니다;;
http://coffeenix.net/board_view.php?bd_code=1668
국내에서 가장 잘 정리한 블로그가 아닐까 생각합니다^^ 저도 추려내서 적용중이구요
저는 strstr로 다음문자를 찾아 적용했습니다.
$ua_mobile[] = "iPhone";
$ua_mobile[] = "Android";
$ua_mobile[] = "lgtelecom";
$ua_mobile[] = "Mobi";
$ua_mobile[] = "CE";
$ua_mobile[] = "SPH";
$ua_mobile[] = "Nokia";
$ua_mobile[] = "SonyEricsson";
$ua_mobile[] = "S8000";
$ua_mobile[] = "Mini";
$ua_mobile[] = "NATEBrowser";
$ua_mobile[] = "Symbian";
$ua_mobile[] = "Berry";
$ua_mobile[] = "SGH-";
$ua_mobile[] = "SPH-";
$ua_mobile[] = "SCH-";
좀 기다리면 다양하게 나오는건가요?
고맙습니다.