Search Results
Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. With this method, any string can be added to the phar archive. The file will be stored in the archive with localname as its path. This method is similar to ZipArchive::addFromString ().
With this method, any string can be added to the tar/zip archive. The file will be stored in the archive with localname as its path. This method is similar to ZipArchive::addFromString ().
With this method, any string can be added to the phar archive. The file will be stored in the archive with localname as its path. This method is similar to ZipArchive::addFromString.
Notes Note: phar:: addFile (), phar:: addFromString () et Phar:: offsetSet () enregistre une nouvelle archive phar à chaque fois qu'elles sont appelées. Si les performances sont une préoccupation, phar:: buildFromDirectory () ou phar:: buildFromIterator () devraient être utilisé à la place.
With this method, any string can be added to the phar archive. The file will be stored in the archive with localname as its path. This method is similar to ZipArchive::addFromString ().
English PHP documentation. Contribute to php/doc-en development by creating an account on GitHub.
Simple usage example of `Phar::addFromString ()`. Phar::addFromString () is a PHP function that allows you to add a file from a string to a Phar archive. This function is useful when you want to add a file to a Phar archive without saving it to the file system first.
