update : 2015.11.03
php.shukuma.com검색:
|
RarArchive::openrar_open(PECL rar >= 2.0.0) RarArchive::open -- rar_open — Open RAR archive 설명객체 기반 형식 (method):
public static RarArchive RarArchive::open
( string
$filename
[, string $password = NULL
[, callable $volume_callback = NULL
]] )절차식 형식:
RarArchive rar_open
( string
$filename
[, string $password = NULL
[, callable $volume_callback = NULL
]] )Open specified RAR archive and return RarArchive instance representing it.
인수
Warning
Prior to version 2.0.0, this function would not handle relative paths correctly. Use realpath() as a workaround. 반환값
Returns the requested RarArchive instance 실패 시 변경점
예제
Example #1 객체 기반 형식
<?php 위 예제의 출력 예시: Found 2 files. Content of first one follows: Encrypted file 1 contents.
Example #2 절차식 형식
<?php
Example #3 Volume Callback
<?php |