|
użytkowników online: 56
|
OPINIE UŻYTKOWNIKÓW
|
Prawdziwa skarbnica wiedzy na temat tworzenia stron WWW i nie tylko. Korzystam z porad praktycznie codziennie, jest mi to niezbędne w mojej pracy. Sam zajmuję się tworzeniem serwisów, ale porady pisane przez Darka sa dla mnie nieocenioną pomocą! Proste, czytelne i zrozumiałe dla każdego! Czekam na więcej!
Krzysztof Szypulski
KESS - projektowanie stron
|
|
PODRĘCZNIK PHP 5.x, 4.x, 3.x - częściowo spolszczony / źródło: www.php.net
[Spis]
[A]
[B]
[C]
[D]
[E]
[F]
[G]
[H]
[I]
[J]
[K]
[L]
[M]
[N]
[O]
[P]
[Q]
[R]
[S]
[T]
[U]
[V]
[X]
[W]
[Z]
CV. Rar Functions
Rar is a powerful and effective archiver created by Eugene Roshal.
This extension gives you possibility to read Rar archives but
doesn't support writing Rar archives, because this is not supported
by UnRar library and is directly prohibited by it's license.
More information about Rar and UnRar can be found at http://www.rarlabs.com/.
Do zbudowania tego rozszerzenia nie są wymagane
żadne zewnętrzne biblioteki. To rozszerzenie nie definiuje posiada żadnych
dyrektyw konfiguracyjnych w pliku php.ini.
Rar is currently available through PECL
http://pecl.php.net/package/rar.
Also you can use the pear installer to install the Rar extension,
using the following command: pear -v install rar.
You can always download the tar.gz package and install Rar by hand:
Przykład 1. Rar installation gunzip rar-xxx.tgz
tar -xvf rar-xxx.tar
cd rar-xxx
phpize
./configure && make && make install |
|
Windows users can download the extension dll php_rar.dll
here: http://snaps.php.net/win32/PECL_STABLE/.
There is one resource used in Rar extension: a file descriptor returned
by rar_open().
Przykład 2. 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.
User Contributed Notessteve_php[at]nanovox[dart]com
11-Oct-2005 03:24
As of right now, rar is in a beta state, so you'll have to compile using: pear -v install -f rar
|