Just discovered how super simple it was to add some gz compression when for example providing JSON data from PHP. All you need is regular output buffering with the ob_gzhandler as output callback. // Fetch some data $data = get_data(); // Turn on output buffering with the gzhandler ob_start('ob_gzhandler'); // Output as normal echo json_encode($data); The cool thing is that it actually looks at ..
var url_regex = /(http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?)/gi; var email_regex = /([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi; var string = "도메인은 http://www.huzy.net/ 이고 이메일은 root@yjhoon.com 입니다."; var url_result = string.match(url_regex); => ["http://www.huzy.net/"] var email_result = string.match(email_regex); => [root@yjhoon.com"] result 값은 둘다 배열로 리턴되서 나옴 .
기본적으로 HttpSessionListener를 구현(Implements)하여 세션이 생성 되는 시점과 세션이 사라지는 시점을 가지고 올 수 있다. 세션을 생성 되는 시점에 DB나 특정 Static 변수에 세션 정보를 저장 하고 세션이 종료될 때 그 세션 정보를 지워 줌으로써 해당 세션의 중복 로그인을 막을 수 있으며 현재 접속중이 접속자 정보를 가지고 올 수 있다. package com.moainfo.http.session; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class MoaSessionList..
무슨 이야기인가 하면 예를 들어 webmini.net 로 접속했을때와 www.webmini.net 그리고 카페24 호스팅 같은 경우 backzzanggu.cafe24.com 으로 접속했을때 자동으로 www.webmini.net 한곳으로 접속되게 하는 팁입니다. 알ftp에서 숨김파일로 되어있어 보이지 않는 파일을 상단메뉴 옵션 > 환경설정에서 숨긴파일을 볼수 있게 설정한후 .htaccess 파일을 메모장으로 연후 2~4 줄에 아래소스를 추가해 줍니다. RewriteCond %{HTTP_HOST} !^www\.webmini\.net$ [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^(.*)$ http://www\.webmini\.net/$1 [L,R] 쉽게 말하면 Rewr..
- Total
- Today
- Yesterday
- 앱테크
- 우회
- 해외주식
- 연말정산
- 아파트매매
- 지도
- 혜택
- ubuntu
- 안드로이드
- 신혼부부
- 공제
- php
- 주담대
- 투자
- 내집마련
- 정부
- 카카오뱅크
- 세금
- 2026
- etf
- 카뱅
- 출산
- 대출
- 고금리
- 금융
- 적금
- 안과
- 부동산
- remove
- 재테크
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |