티스토리 뷰
'// 모바일 브라우저인가? Function is_mobile() arr_Browser = array("iPhone", "iPod", "IEMobile", "Mobile", "lgtelecom", "PPC", "BlackBerry", "SCH-", "SPH-", "LG-", "CANU", "IM-" ,"EV-","Nokia", "Mobi") For i = 0 To Ubound(arr_Browser) user_agent = Lcase(arr_Browser(i)) '// preg_match()는 PHP 함수를 ASP 컨버젼한 개인 함수 If preg_match(user_agent, Request.ServerVariables("HTTP_USER_AGENT")) then is_mobile = True Exit Function End If Next is_mobile = False End Function
'웹프로그래밍 > ASP Classic' 카테고리의 다른 글
JSON Escape (0) | 2013.05.22 |
---|---|
XML Escape/UnEscape (0) | 2013.05.22 |
Classic ASP SHA1 암호화 (0) | 2013.05.22 |
Classic ASP UTF-8 파일 읽기, 쓰기 (0) | 2013.05.22 |
Smarty 템플릿 엔진을 닮은 classic ASP 프레임웍 Dermis (0) | 2013.05.04 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- ASP
- laravel
- CSS
- mssql
- macos
- Mac
- IE
- 안드로이드
- 워드프레스
- Linux
- classic asp
- JSON
- sencha touch
- nodejs
- Android
- PHP
- centos
- Wordpress
- Docker
- git
- javascript
- API
- 한글
- IOS
- Debug
- iis
- JQuery
- nginx
- Prototype
- iphone
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함