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

search for in the

ZipArchive::unchangeAll> <ZipArchive::statIndex
[edit] Last updated: Fri, 24 Jun 2011

view this page in

ZipArchive::statName

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

ZipArchive::statNameدریافت جزئیات ورودی با نام

Description

mixed ZipArchive::statName ( name $name [, int $flags ] )

تابع اطلاعات ورودی درباره ورودی را با نام آن دریافت می‌کند.

Parameters

name

نام ورودی

flags

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

  • ZIPARCHIVE::FL_NOCASE

  • ZIPARCHIVE::FL_NODIR

  • ZIPARCHIVE::FL_UNCHANGED

Return Values

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

Examples

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

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip');
if (
$res === TRUE) {
    
print_r($zip->statName('foobar/baz'));
    
$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::statName - [0 notes]
There are no user contributed notes for this page.

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