|
|
|
The PharData class
Introduction
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.
Class synopsis
PharData
class PharData
extends
Phar
{
object compress
( int $compression
, string $extension
)
PharData convertToData
([ int $format
[, int $compression
[, string $extension
]]] )
bool copy
( string $oldfile
, string $newfile
)
int extractTo
( string $pathto
[, string|array $files
[, bool $overwrite
]] )
void offsetSet
( string $offset
, string $value
)
bool Phar::copy
( string $oldfile
, string $newfile
)
int Phar::extractTo
( string $pathto
[, string|array $files
[, bool $overwrite
]] )
void Phar::mount
( string $pharpath
, string $externalpath
)
void Phar::webPhar
( string $alias
, string $index
, string $f404
, array $mimetypes
, array $rewrites
)
}
Table of Contents
|
|
|
|
|