PHP
my php5.org
Rar Functions> <Predefined Constants
Last updated: Fri, 24 Apr 2009

Examples

Example #1 Rar extension overview example

<?php

$rar_file 
rar_open('example.rar') or die("Can't open Rar archive");

$entries rar_list($rar_file);

foreach (
$entries as $entry) {
    echo 
'Filename: ' $entry->getName() . "\n";
    echo 
'Packed size: ' $entry->getPackedSize() . "\n";
    echo 
'Unpacked size: ' $entry->getUnpackedSize() . "\n";

    
$entry->extract('/dir/extract/to/');
}

rar_close($rar_file);

?>

This example opens a Rar file archive and extracts each entry to the specified directory.

dish network pawleys island south carolina  |||   premiercontractors.net


User Contributed Notes
Examples
There are no user contributed notes for this page.

Rar Functions> <Predefined Constants
Last updated: Fri, 24 Apr 2009