Архивировние PEAR::Arhive_zip

Sky_Flex

Новичок
Архивировние PEAR::Arhive_zip

есть файл в директории images/price/ архивирую его по статье http://www.phpit.net/article/creating-zip-tar-archives-dynamically-php/
т.е. так:
PHP:
include ('../templates/zip.php'); 

		// Create instance of Archive_Zip class, and pass the name of our zipfile
		$zipfile = New Archive_Zip('../price-list-'.date('Y-m-d').'.zip');
		
		// Create a list of files and directories
		$list  = array('../images/price/'.$file);
		$param = array('no_compression' => 0, 'add_path' => '', 'remove_path' => "", 'remove_all_path' => ''); 
		
		// Create the zip file
		$zip = $zipfile->create($list, $param);
что это за параметры $param ? и как они работают?
впринципе понимаю что:
* The supported parameters for this method are :
* 'add_path' : Добавьте путь к архивным файлам (Add a path to the archived files).
* 'remove_path' : Переместите указанный 'корневой' путь архивных файлов (Remove the specified 'root' path of the archived files.)
* 'remove_all_path' : Переместите весь путь архивных файлов. (Remove all the path of the archived files.)
* 'no_compression' : The archived files will not be compressed.

но вот сколько не пытался "Переместите весь путь архивных файлов." так ничего и не получается...

может доходчивее обьясните что там и как в параметрах прописывать?
А ЕСТЬ для rar такая же библиотека?
и как выбирать метод сжатия? (архивит в "хороший", а хотелось бы в "максимальный")
 
Сверху