![]() | CXX. Phar archive stream and classesIntroduzioneThe phar extension provides the phar stream wrapper and the Phar class for manipulating self-contained PHP Archive (phar) files. The Phar class can be used to create and to extract contents of phar files as well as iterating over their contents. PHP Archive files are special collections of files that can be transparently run right out of the file, similar to Java's jar archive files. Using a phar archive, it is possible to distribute a complete PHP application in a single file. Phar archives can also be used to store files for extraction similar to tar or zip archive files. RequisitiPhar requires PHP 5.2.0 or newer, and requires that the SPL extension be built into PHP. You may optionally wish to enable the zlib and bzip2 extensions to take advantage of compressed phar support. In addition, the hash extension can be used for signing phars and verifying integrity. InstallazioneWindows binaries may be found at http://snaps.php.net/. To install, download php_phar.dll to the folder specified by your php.ini file's extension_dir directive. Enable it by adding extension=php_phar.dll to your php.ini and restarting your webserver.
Linux, BSD, and other *nix variants can be compiled using the following steps:
Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/phar. Configurazione di RuntimeIl comportamento di queste funzioni è influenzato dalle impostazioni di php.ini.
Tabella 1. Filesystem and Streams Configuration Options
Breve descrizione dei parametri di configurazione.
Classes
| ![]() | ||||||||||||||