RarArchive::openrar_openOpen RAR archive BeschreibungObjektorientierter Stil (method):
public static RarArchive RarArchive::open
( string
$filename
[, string $password = NULL
[, callable $volume_callback = NULL
]] )Prozeduraler Stil:
RarArchive rar_open
( string
$filename
[, string $password = NULL
[, callable $volume_callback = NULL
]] )Open specified RAR archive and return RarArchive instance representing it.
Parameter-Liste
Warnung
Prior to version 2.0.0, this function would not handle relative paths correctly. Use realpath as a workaround. Rückgabewerte
Returns the requested RarArchive instance Im Fehlerfall wird Changelog
Beispiele
Beispiel #1 Objektorientierter Stil
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: Found 2 files. Content of first one follows: Encrypted file 1 contents.
Beispiel #2 Prozeduraler Stil
<?php
Beispiel #3 Volume Callback
<?php |