PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

List of Available Filters> <지원 프로토콜/래퍼 목록
Last updated: Sun, 25 Nov 2007

view this page in

압축 스트림

zlib: PHP 4.0.4 - PHP 4.2.3 (fopencookie만 갖는 시스템)

compress.zlib://compress.bzip2:// PHP 4.3.0 이상

  • zlib:
  • compress.zlib://
  • compress.bzip2://

zlib:gzopen()처럼 동작한다, fread()와 다른 파일시스템 함수와 함께 사용할수 없다. ':' 문자를 포함하는 파일명이 갖는 모호함때문에 PHP 4.3.0이후부터 사용되지 않는다. 대신 compress.zlib://를 사용한다.

compress.zlib://compress.bzip2:// 은 각각 gzopen() , bzopen()와 동일하게 동작하고, fopencookie를 지원하지 않는 시스템에서도 사용할수 있다.

래퍼(Wrapper) 요약
속성 지원
allow_url_fopen으로 제한 No
읽기 허용 Yes
쓰기 허용 Yes
추가 허용 Yes
동시 읽기/쓰기 허용 No
stat()지원 No, 압축된 파일을 stat하기 위해서 보통의 file:// 래퍼를 사용한다.
unlink()지원 No, 압축된 파일을 unlink하기 위해서 보통의 file:// 래퍼를 사용한다.
rename() 지원 No
mkdir() 지원 No
rmdir() 지원 No



add a note add a note User Contributed Notes
압축 스트림
joshualross at gmail dot com
19-Aug-2007 12:24
I had a difficult time finding how to use compress.zlib with an http resource so I thought I would post what I found
<?php
$file
= 'compress.zlib://http://www.example.com/myarchive.gz';
$fr = fopen($file, 'rb');
?>

Per the bugreport I found here (http://bugs.php.net/bug.php?id=29045)

 
show source | credits | stats | sitemap | contact | advertising | mirror sites