본문 바로가기 메뉴 바로가기

Huzylog

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Huzylog

검색하기 폼
  • 전체보기 (389)
    • 자유 (132)
      • 제품리뷰 (2)
      • 재테크 (42)
      • 부동산 (22)
      • 생활꿀팁 (19)
      • 뉴스 브리핑 (6)
      • 알리테무도전기 (4)
      • 여행-국내 (2)
      • 여행-해외 (0)
      • 건강 (3)
      • 요리 (0)
    • 서버 등 운영체제(OS) (81)
      • Linux (44)
      • Mac (1)
      • Windows (17)
    • 프로그래밍 (20)
      • JAVA (11)
      • MySQL (7)
    • 웹프로그래밍 (130)
      • node.js & Typescript (20)
      • Javascript (30)
      • Python (2)
      • JSP, Spring (8)
      • PHP (20)
      • React (5)
      • VueJs (1)
      • HTML (10)
      • CSS (16)
    • 프로그램 및 소스 (25)
  • 방명록

2016/06/16 (1)
PHP: Simple compression of JSON data

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 ..

웹프로그래밍/PHP 2016. 6. 16. 09:36
이전 1 다음
이전 다음
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 휴지넷
TAG
  • 지도
  • 카뱅
  • 카카오뱅크
  • 정부
  • 출산
  • 혜택
  • 아파트매매
  • 2026
  • 주담대
  • 부동산
  • 우회
  • remove
  • 신혼부부
  • 투자
  • 세금
  • 대출
  • php
  • 안과
  • 내집마련
  • ubuntu
  • 적금
  • 공제
  • 금융
  • 고금리
  • etf
  • 앱테크
  • 재테크
  • 안드로이드
  • 해외주식
  • 연말정산
more
«   2016/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바