Search Results

  1. The second parameter files can be either the name of a file or directory to extract, or an array of names of files and directories to extract. By default, this method will not overwrite existing files, the third parameter can be set to true to enable overwriting of files. This method is similar to ZipArchive::extractTo ().

    • PHP

      Introduction ¶ The PharData class provides a high-level...

    • Compress

      For tar archives, this method compresses the entire archive...

    • Decompress

      For tar-based archives, this method decompresses the entire...

    • Buildfromdirectory

      Populate a tar/zip archive from directory contents. The...

    • Construct

      Parameters ¶ filename Path to an existing tar/zip archive or...

    • Converttoexecutable

      Convert a non-executable tar/zip archive to an executable...

    • Buildfromiterator

      PharData::buildFromIterator () does not set values such as...

    • Decompressfiles

      Note: This method requires the php.ini setting phar.readonly...

  2. Mar 12, 2026 · The second parameter files can be either the name of a file or directory to extract, or an array of names of files and directories to extract. By default, this method will not overwrite existing files, the third parameter can be set to true to enable overwriting of files. This method is similar to ZipArchive::extractTo ().

  3. Le second paramètre files peut être le nom d'un fichier ou d'un répertoire à extraire, ou tableau de nom de fichiers et de répertoires à extraire. Par défaut, cette méthode n'écrasera aucun fichier déjà existant, à moins que le troisième paramètre soit à true. Cette méthode est identique à ZipArchive::extractTo ().

  4. 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.

  5. The PharData class Introduction (PHP 5 >= 5.3.0, PHP 7, PECL phar >= 2.0.0) 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 ...

  6. Jan 23, 2015 · I'm using the extractTo method of the PHP PharData class to examine the contents of a phar file and running into some strage results. I've reached the limits of my byte level detective work and was

  7. People also ask

  8. 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.