rar://

rar:// — RAR

Description

The wrapper takes the url encoded path to the RAR archive (relative or absolute),
an optional asterik (*), an optional number sign
(#) and an optional url encoded entry name, as stored in the
archive. Specifying an entry name requires the number sign; a leading forward
slash in the entry name is optional.

This wrapper can open both files and directories. When opening directories, the
asterisk sign forces the directory entries names to be returned unencoded. If it's
not specified, they will be returned url encoded – the reason for this is to allow
the wrapper to be correctly used with built-in functionality like the
RecursiveDirectoryIterator in the presence of file names that seem like
url encoded data.

If the pound sign and the entry name part are not included, the root of the archive
will be displayed. This differs from regular directories in that the resulting
stream will not contain information such as the modification time, as the root
directory is not stored in an inidivual entry in the archive.
The usage of the wrapper with RecursiveDirectoryIterator requires
the number sign to be included in the URL when accessing the root, so that the
URLs of the children may be constructed correctly.

Note:
This wrapper is not enabled by default
In order to use the rar:// wrapper, you must install
the » rar extension
available from » PECL.

The password used to encrypt the headers of the archive,
if any. WinRAR will encrypt all the files with the same password
as the headers password when the later is present, so for archives
with encrypted headers, file_password will be
ignored.

file_password

The password used to encrypt a file, if any. If the headers
are also encrypted, this option will be ignored in favor of
open_password. The reason there are two options
is to cover the possibility of supporting archives with different
headers and file passwords, should those archives arise. Note that
if the archive does not have its headers encrypted,
open_password will be ignored and this option
must be used instead.

volume_callback

A callback to determine the path of missing volumes. See
RarArchive::open() for more information.