PHP » GoLang |
login |
register |
about
|
GoLang RarArchive::open
request it (476)
GoLang replacement for PHP's RarArchive::open
[edit | history]
RarArchive::openrar_open(PECL rar >= 2.0.0) RarArchive::open -- rar_open — Open 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 |
more
Recently updated
more
Most requested
more
Last requests
|