PHP
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Rar::getName> <Rar::getHostOs
Last updated: Fri, 02 Jan 2009

view this page in

Rar::getMethod

(PECL rar >= 0.1)

Rar::getMethodGet pack method of the entry

Description

Rar
int getMethod ( void )

Rar::getMethod() returns number of the method used when adding current archive entry.

Return Values

Returns the method number or FALSE on error.

Examples

Example #1 Rar::getMethod() example

<?php

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

$entry rar_entry_get($rar_file'Dir/file.txt') or die("Failed to find such entry");

echo 
"Method number: " $entry->getMethod();

?>



add a note add a note User Contributed Notes
Rar::getMethod
There are no user contributed notes for this page.

Rar::getName> <Rar::getHostOs
Last updated: Fri, 02 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites