Документация PHP


Phar Signature format

Phar::addEmptyDir

Phar

PHP Manual


The Phar class

Введение

The Phar class provides a high-level interface to accessing and creating phar archives.

Class synopsis

Phar

class Phar extends DirectoryIterator implements Countable , ArrayAccess {

/* Properties */

/* Methods */

bool addEmptyDir ( string $dirname )

bool addFile ( string $file [, string $localname ] )

bool addFromString ( string $localname , string $contents )

string apiVersion ( void )

array buildFromDirectory ( string $base_dir [, string $regex ] )

array buildFromIterator ( Iterator $iter [, string $base_directory ] )

bool canCompress ([ int $type ] )

bool canWrite ( void )

object compress ( int $compression [, string $extension ] )

bool compressAllFilesBZIP2 ( void )

bool compressAllFilesGZ ( void )

bool compressFiles ( int $compression )

void __construct ( string $fname [, int $flags [, string $alias ]] )

PharData convertToData ([ int $format [, int $compression [, string $extension ]]] )

Phar convertToExecutable ([ int $format [, int $compression [, string $extension ]]] )

bool copy ( string $oldfile , string $newfile )

int count ( void )

string createDefaultStub ( void )

object decompress ([ string $extension ] )

bool decompressFiles ( void )

int delMetadata ( void )

int delete ( string $entry )

int extractTo ( string $pathto [, string|array $files [, bool $overwrite ]] )

int getMetaData ( void )

bool getModified ( void )

array getSignature ( void )

string getStub ( void )

array getSupportedCompression ( void )

array getSupportedSignatures ( void )

string getVersion ( void )

int hasMetadata ( void )

void interceptFileFuncs ( void )

bool isBuffering ( void )

mixed isCompressed ( void )

bool isFileFormat ( int $format )

bool isValidPharFilename ( string $filename [, bool $executable ] )

bool isWritable ( void )

mixed loadPhar ( string $filename [, string $alias ] )

mixed mapPhar ([ string $alias [, int $dataoffset ]] )

void mount ( string $pharpath , string $externalpath )

void mungServer ( array $munglist )

bool offsetExists ( string $offset )

int offsetGet ( string $offset )

void offsetSet ( string $offset , string $value )

bool offsetUnset ( string $offset )

bool running ([ bool $retphar ] )

bool setAlias ( string $alias )

void setDefaultStub ([ string $index [, string $webindex ]] )

void setMetadata ( mixed $metadata )

array setSignatureAlgorithm ( int $sigtype )

void setStub ( string $stub )

void startBuffering ( void )

void stopBuffering ( void )

bool uncompressAllFiles ( void )

bool unlinkArchive ( string $archive )

void webPhar ( string $alias , string $index , string $f404 , array $mimetypes , array $rewrites )

}

Содержание


Phar Signature format

Phar::addEmptyDir

Phar

PHP Manual

SAPE все усложнил?

MainLink - простая и прибыльная продажа ссылок!

Последние поступления:

Размещена 10 августа 2020 года

Я по ТВ видел, что через 10 лет мы будем жить лучше, чем в Германии...
Я не понял, что это они с Германией сделать хотят?!

читать далее…

ТехЗадание на Землю

Размещена 14 марта 2018 года

Пpоект Genesis (из коpпоpативной пеpеписки)

читать далее…

Шпаргалка по работе с Vim

Размещена 05 декабря 2017 года

Vim довольно мощный редактор, но работа с ним не всегда наглядна.
Например если нужно отредактировать какой-то файл например при помощи crontab, без знания специфики работы с viv никак.

читать далее…

Ошибка: Error: Cannot find a valid baseurl for repo

Размещена 13 сентабря 2017 года

Если возникает ошибка на centos 5 вида
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/

читать далее…

Linux Optimization

Размещена 30 июля 2012 года

Prelink

читать далее…