ZipArchive sınıfı

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

Giriş

Zip ile sıkıştırılmış bir dosya arşivi.

Sınıf Sözdizimi

ZipArchive {
/* Özellikler */
/* Yöntemler */
addEmptyDir ( string $dizin ) : bool
addFile ( string $dosya , string $yerel_isim = ? ) : bool
addFromString ( string $isim , string $içerik ) : bool
public addGlob ( string $pattern , int $flags = 0 , array $options = [] ) : array|false
public addPattern ( string $pattern , string $path = "." , array $options = [] ) : array|false
public close ( ) : bool
public count ( ) : int
deleteIndex ( int $indis ) : bool
deleteName ( string $isim ) : bool
extractTo ( string $hedef , mixed $girdiler = ? ) : bool
getArchiveComment ( ) : string
getCommentIndex ( int $indis , int $seçenekler = ? ) : string
getCommentName ( string $isim , int $seçenekler = ? ) : string
public GetExternalAttributesIndex ( int $index , int &$opsys , int &$attr , int $flags = ? ) : bool
public getExternalAttributesName ( string $name , int &$opsys , int &$attr , int $flags = 0 ) : bool
getFromIndex ( int $indis , int $seçenekler = ? ) : mixed
getFromName ( string $isim , int $seçenekler = ? ) : mixed
getNameIndex ( int $indis ) : string
GetStatusString ( ) : string
getStream ( string $name ) : resource
public static isCompressionMethodSupported ( int $method , bool $enc = true ) : bool
public static isEncryptionMethodSupported ( int $method , bool $enc = true ) : bool
locateName ( string $isim , int $seçenekler = ? ) : mixed
open ( string $dosya , int $seçenekler = ? ) : mixed
public registerCancelCallback ( callable $callback ) : bool
public registerProgressCallback ( float $rate , callable $callback ) : bool
renameIndex ( int $indis , string $yeni_isim ) : bool
renameName ( string $isim , string $yenisi ) : bool
public replaceFile ( string $filepath , string $index , int $start = 0 , int $length = 0 , int $flags = 0 ) : bool
setArchiveComment ( string $açıklama ) : mixed
setCommentIndex ( int $indis , string $açıklama ) : mixed
setCommentName ( string $isim , string $açıklama ) : mixed
public setCompressionIndex ( int $index , int $method , int $compflags = 0 ) : bool
public setCompressionName ( string $name , int $method , int $compflags = 0 ) : bool
public setEncryptionIndex ( int $index , int $method , string|null $password = null ) : bool
public setEncryptionName ( string $name , int $method , string|null $password = null ) : bool
public setExternalAttributesIndex ( int $index , int $opsys , int $attr , int $flags = 0 ) : bool
public setExternalAttributesName ( string $name , int $opsys , int $attr , int $flags = 0 ) : bool
public setMtimeIndex ( int $index , int $timestamp , int $flags = 0 ) : bool|null
public setMtimeName ( string $name , int $timestamp , int $flags = 0 ) : bool|null
public setPassword ( string $password ) : bool
statIndex ( int $indis , int $seçenekler = ? ) : mixed
statName ( name $isim , int $seçenekler = ? ) : mixed
unchangeIndex ( int $indis ) : mixed
unchangeName ( string $isim ) : mixed
}

Özellikler

status

Zip Arşivinin durumu

statusSys

Zip Arşivinin sistem durumu

numFiles

Arşivdeki dosya sayısı

filename

Dosya sistemindeki dosya ismi

comment

Arşivle ilgili açıklama

İçindekiler