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

search for in the

RarEntry::isDirectory> <RarEntry::getUnpackedSize
[edit] Last updated: Fri, 25 May 2012

view this page in

RarEntry::getVersion

(PECL rar >= 0.1)

RarEntry::getVersionこのエントリを展開するのに必要な RAR プログラムの最低バージョンを取得する

説明

public int RarEntry::getVersion ( void )

このエントリを展開するのに必要な RAR プログラム (WinRAR など) の最低バージョンを取得します。 10 * メジャーバージョン + マイナーバージョン 形式になります。

パラメータ

この関数にはパラメータはありません。

返り値

バージョン、あるいはエラー時に FALSE を返します。

例1 RarEntry::getVersion() の例

<?php

$rar_file 
rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました");

$entry rar_entry_get($rar_file'Dir/file.txt') or die("そのようなエントリは見つかりませんでした");

echo 
"展開に必要な Rar のバージョン: " $entry->getVersion();

?>



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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites