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

search for in the

ZipArchive::statName> <ZipArchive::setCommentName
[edit] Last updated: Fri, 24 Jun 2011

view this page in

ZipArchive::statIndex

(PHP 5 >= 5.2.0, PECL zip >= 1.1.0)

ZipArchive::statIndexتابع دریافت اطلاعات درباره ورودی تعریف شده با اندیس آن

Description

mixed ZipArchive::statIndex ( int $index [, int $flags ] )

تابع دریافت اطلاعات درباره ورودی تعریف شده با اندیس آن.

Parameters

index

اندیس ورودی

flags

ZIPARCHIVE::FL_UNCHANGED ممکن است ORed نسبت به اطلاعات درخواستی درباره فایل اصلی در آرشیو باز می‌گرداند بدون توجه به تغییرات.

Return Values

بازگرداندن آرایه جزئیات ورودی or FALSE on failure.

Examples

Example #1 کپی اطلاعات ورودی

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip');
if (
$res === TRUE) {
    
print_r($zip->statIndex(3));
    
$zip->close();
} else {
    echo 
'failed, code:' $res;
}
?>

The above example will output something similar to:

Array
(
    [name] => foobar/baz
    [index] => 3
    [crc] => 499465816
    [size] => 27
    [mtime] => 1123164748
    [comp_size] => 24
    [comp_method] => 8
)


add a note add a note User Contributed Notes ZipArchive::statIndex - [0 notes]
There are no user contributed notes for this page.

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