RarArchive::openrar_openOpen RAR archive DescriptionObject oriented style (method):
public static RarArchive RarArchive::open
( string
$filename
[, string $password = NULL
[, callable $volume_callback = NULL
]] )Procedural style:
RarArchive rar_open
( string
$filename
[, string $password = NULL
[, callable $volume_callback = NULL
]] )Open specified RAR archive and return RarArchive instance representing it.
Parameters
Warning
Prior to version 2.0.0, this function would not handle relative paths correctly. Use realpath as a workaround. Return Values
Returns the requested RarArchive instance or Changelog
Examples
Example #1 Object oriented style
<?php The above example will output something similar to: Found 2 files. Content of first one follows: Encrypted file 1 contents.
Example #2 Procedural style
<?php
Example #3 Volume Callback
<?php |