(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
{
addFile
(
string $dosya
,
string $yerel_isim
= ?
) :
bool
public addGlob
(
string $pattern
,
int $flags
= 0
,
array $options
= []
) :
array|false
public addPattern
(
string $pattern
,
string $path
= "."
,
array $options
= []
) :
array|false
open
(
string $dosya
,
int $seçenekler
= ?
) :
mixed
renameName
(
string $isim
,
string $yenisi
) :
bool
public replaceFile
(
string $filepath
,
string $index
,
int $start
= 0
,
int $length
= 0
,
int $flags
= 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 setMtimeIndex
(
int $index
,
int $timestamp
,
int $flags
= 0
) :
bool|null
public setMtimeName
(
string $name
,
int $timestamp
,
int $flags
= 0
) :
bool|null
}
Özellikler
- status
-
Zip Arşivinin durumu
- statusSys
-
Zip Arşivinin sistem durumu
- numFiles
-
Arşivdeki dosya sayısı
- filename
-
Dosya sistemindeki dosya ismi
-
Arşivle ilgili açıklama