The PharData class
(PHP 5 >= 5.3.0, PHP 7, PECL phar >= 2.0.0)
Introducere
The PharData class provides a high-level interface to accessing and creating
non-executable tar and zip archives. Because these archives do not contain
a stub and cannot be executed by the phar extension, it is possible to create
and manipulate regular zip and tar files using the PharData class even if
phar.readonly
php.ini setting is 1
.
Sinopsisul clasei
public addFile
(
string $file
[,
string $localname
] ) :
void
public addFromString
(
string $localname
,
string $contents
) :
void
public __construct
(
string $fname
[,
int $flags
[,
string $alias
[,
int $format
= Phar::TAR
]]] )
public copy
(
string $oldfile
,
string $newfile
) :
bool
public delete
(
string $entry
) :
bool
public extractTo
(
string $pathto
[,
string|array|null $files
= null
[,
bool $overwrite
= false
]] ) :
bool
public offsetSet
(
string $offset
,
string $value
) :
void
public setAlias
(
string $alias
) :
bool
public setDefaultStub
([
string $index
[,
string $webindex
]] ) :
bool
public setStub
(
string $stub
[,
int $len
= -1
] ) :
bool
}
Cuprins
There are no user contributed notes for this page.