Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Keyword Suggestion Scripts | Email : sachin {at} jainsachin {dot} com

PHP | The PharData class | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



SEO Tools




    The PharData class

    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 {
    /* Properties */
    /* Methods */
    bool addEmptyDir ( string $dirname )
    bool Phar::addFile ( string $file [, string $localname ] )
    bool addFromString ( string $localname , string $contents )
    array Phar::buildFromDirectory ( string $base_dir [, string $regex ] )
    array buildFromIterator ( Iterator $iter [, string $base_directory ] )
    object compress ( int $compression , string $extension )
    bool compressFiles ( int $compression )
    void __construct ( string $fname [, int $flags ] )
    PharData convertToData ([ int $format [, int $compression [, string $extension ]]] )
    Phar convertToExecutable ([ int $format [, int $compression [, string $extension ]]] )
    bool copy ( string $oldfile , string $newfile )
    object decompress ([ string $extension ] )
    bool decompressFiles ( void )
    int delMetadata ( void )
    int delete ( string $entry )
    int extractTo ( string $pathto [, string|array $files [, bool $overwrite ]] )
    bool isWritable ( void )
    void offsetSet ( string $offset , string $value )
    bool offsetUnset ( string $offset )
    bool setAlias ( string $alias )
    void setDefaultStub ([ string $index [, string $webindex ]] )
    void Phar::setMetadata ( mixed $metadata )
    array Phar::setSignatureAlgorithm ( int $sigtype )
    void setStub ( string $stub )
    /* Inherited methods */
    bool Phar::addEmptyDir ( string $dirname )
    bool Phar::addFile ( string $file [, string $localname ] )
    bool Phar::addFromString ( string $localname , string $contents )
    string Phar::apiVersion ( void )
    array Phar::buildFromDirectory ( string $base_dir [, string $regex ] )
    array Phar::buildFromIterator ( Iterator $iter [, string $base_directory ] )
    bool Phar::canCompress ([ int $type ] )
    bool Phar::canWrite ( void )
    object Phar::compress ( int $compression [, string $extension ] )
    bool Phar::compressFiles ( int $compression )
    void Phar::__construct ( string $fname [, int $flags [, string $alias ]] )
    PharData Phar::convertToData ([ int $format [, int $compression [, string $extension ]]] )
    Phar Phar::convertToExecutable ([ int $format [, int $compression [, string $extension ]]] )
    bool Phar::copy ( string $oldfile , string $newfile )
    int Phar::count ( void )
    string Phar::createDefaultStub ( void )
    object Phar::decompress ([ string $extension ] )
    bool Phar::decompressFiles ( void )
    int Phar::delMetadata ( void )
    int Phar::delete ( string $entry )
    int Phar::extractTo ( string $pathto [, string|array $files [, bool $overwrite ]] )
    int Phar::getMetaData ( void )
    bool Phar::getModified ( void )
    array Phar::getSignature ( void )
    string Phar::getStub ( void )
    string Phar::getVersion ( void )
    int Phar::hasMetadata ( void )
    bool Phar::isBuffering ( void )
    mixed Phar::isCompressed ( void )
    bool Phar::isFileFormat ( int $format )
    bool Phar::isValidPharFilename ( string $filename [, bool $executable ] )
    bool Phar::isWritable ( void )
    mixed Phar::loadPhar ( string $filename [, string $alias ] )
    mixed Phar::mapPhar ([ string $alias [, int $dataoffset ]] )
    void Phar::mount ( string $pharpath , string $externalpath )
    void Phar::mungServer ( array $munglist )
    bool Phar::offsetExists ( string $offset )
    int Phar::offsetGet ( string $offset )
    void Phar::offsetSet ( string $offset , string $value )
    bool Phar::offsetUnset ( string $offset )
    bool Phar::running ([ bool $retphar ] )
    bool Phar::setAlias ( string $alias )
    void Phar::setDefaultStub ([ string $index [, string $webindex ]] )
    void Phar::setMetadata ( mixed $metadata )
    array Phar::setSignatureAlgorithm ( int $sigtype )
    void Phar::setStub ( string $stub )
    void Phar::startBuffering ( void )
    void Phar::stopBuffering ( void )
    bool Phar::unlinkArchive ( string $archive )
    void Phar::webPhar ( string $alias , string $index , string $f404 , array $mimetypes , array $rewrites )
    }

    Table of Contents


    SEO Tutorial / Articles



    Php / Mysql Tutorial



    Articles



      Other Topics



      SEO by Jainsachin