RAR (Roshal Archive) is a file compression format that supports error recovery and file segmentation. PHP supports using .RAR files as IO streams. rar:// is a stream wrapper for RAR streams.
rar://Wrapper accepts relative or absolute URL-encoded paths to RAR archives. An optional (*), or (#) and an optional URL-encoded name of the entry to be stored in the archive. This wrapper can open files and directories.
If the pound sign and entry name part are not included, the root directory of the archive is displayed. Using RecursiveDirectoryIterator with wrappers requires including the hash sign in the URL.
This wrapper is not enabled by default. The rar extension from PECL (PHP Extension Community Library) must be installed.
rar://<url encoded archive name>[*][#[<url encoded entry name>]]
open_password | The password used to encrypt the archive header, if any if. |
---|---|
file_password | The password used to encrypt the file, if any. If the header is also encrypted, this option will be ignored and open_password will prevail. |
volume_callback | Callback function used to determine the path of a missing volume. |
The above is the detailed content of The translation of PHP rar:// into Chinese is: PHP rar://. For more information, please follow other related articles on the PHP Chinese website!