<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Создание zip архивов с помощью PHP скрипта</title>
	<atom:link href="http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html</link>
	<description>Блог о программировании</description>
	<pubDate>Thu, 20 Nov 2008 13:58:45 +0000</pubDate>
	
		<item>
		<title>By: Владимир</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2339</link>
		<dc:creator>Владимир</dc:creator>
		<pubDate>Sat, 06 Sep 2008 08:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2339</guid>
		<description>Небольшое дополнение. Ссылка на описание &lt;a href="http://www.php.net/~helly/php/ext/spl/classRecursiveIteratorIterator.html" rel="nofollow"&gt;RecursiveIteratorIterator&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Небольшое дополнение. Ссылка на описание <a href="http://www.php.net/~helly/php/ext/spl/classRecursiveIteratorIterator.html" rel="nofollow">RecursiveIteratorIterator</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: exolon</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2328</link>
		<dc:creator>exolon</dc:creator>
		<pubDate>Fri, 05 Sep 2008 15:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2328</guid>
		<description>Сниппет для архивирования папки в zip-архив с помощью php. Надеюсь пригодится.
&lt;code&gt;open('my-archive.zip', ZIPARCHIVE::CREATE) !== TRUE) {
    die ("Could not open archive");
}

// initialize an iterator
// pass it the directory to be processed
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("app/"));

// iterate over the directory
// add each file found to the archive
foreach ($iterator as $key=&#62;$value) {
    $zip-&#62;addFile(realpath($key), $key) or die ("ERROR: Could not add file: $key");        
}

// close and save archive
$zip-&#62;close();
echo "Archive created successfully.";    
?&#62;&lt;/code&gt;

Взято &lt;a href="http://devzone.zend.com/article/2105-Dynamically-Creating-Compressed-Zip-Archives-With-PHP" rel="nofollow"&gt;отсюда&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Сниппет для архивирования папки в zip-архив с помощью php. Надеюсь пригодится.<br />
<code>open('my-archive.zip', ZIPARCHIVE::CREATE) !== TRUE) {<br />
    die ("Could not open archive");<br />
}</p>
<p>// initialize an iterator<br />
// pass it the directory to be processed<br />
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("app/"));</p>
<p>// iterate over the directory<br />
// add each file found to the archive<br />
foreach ($iterator as $key=&gt;$value) {<br />
    $zip-&gt;addFile(realpath($key), $key) or die ("ERROR: Could not add file: $key");<br />
}</p>
<p>// close and save archive<br />
$zip-&gt;close();<br />
echo "Archive created successfully.";<br />
?&gt;</code></p>
<p>Взято <a href="http://devzone.zend.com/article/2105-Dynamically-Creating-Compressed-Zip-Archives-With-PHP" rel="nofollow">отсюда</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: exolon</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2327</link>
		<dc:creator>exolon</dc:creator>
		<pubDate>Fri, 05 Sep 2008 15:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2327</guid>
		<description>Спасибо, помогло :)</description>
		<content:encoded><![CDATA[<p>Спасибо, помогло <img src='http://www.simplecoding.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Владимир</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2023</link>
		<dc:creator>Владимир</dc:creator>
		<pubDate>Tue, 05 Aug 2008 12:40:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2023</guid>
		<description>Возможная причина - ограничение времени выполнения скрипта или максимального объема памяти.
Настройки в php.ini:
memory_limit
max_execution_time</description>
		<content:encoded><![CDATA[<p>Возможная причина - ограничение времени выполнения скрипта или максимального объема памяти.<br />
Настройки в php.ini:<br />
memory_limit<br />
max_execution_time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: koza4ok</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2018</link>
		<dc:creator>koza4ok</dc:creator>
		<pubDate>Tue, 05 Aug 2008 08:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-2018</guid>
		<description>Внедрил скрипт, всё вроде хорошо работает, но если размер архива достигает 128кб, возвращаетса битый архив... счем может быть связана проблемма?</description>
		<content:encoded><![CDATA[<p>Внедрил скрипт, всё вроде хорошо работает, но если размер архива достигает 128кб, возвращаетса битый архив&#8230; счем может быть связана проблемма?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Блог web-мастера &#187; Работа с архивами средствами PHP</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-1342</link>
		<dc:creator>Блог web-мастера &#187; Работа с архивами средствами PHP</dc:creator>
		<pubDate>Mon, 07 Jul 2008 09:41:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-1342</guid>
		<description>[...] Создание zip архивов с помощью PHP скрипта [...]</description>
		<content:encoded><![CDATA[<p>[...] Создание zip архивов с помощью PHP скрипта [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OnlineZip</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-775</link>
		<dc:creator>OnlineZip</dc:creator>
		<pubDate>Tue, 20 May 2008 18:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-775</guid>
		<description>пользуйтесь онлайн сервисом &lt;a href="http://onlinezip.cn" rel="nofollow"&gt;OnlineZIP.cn&lt;/a&gt; для создания архивов и отправки его на любой мейл</description>
		<content:encoded><![CDATA[<p>пользуйтесь онлайн сервисом <a href="http://onlinezip.cn" rel="nofollow">OnlineZIP.cn</a> для создания архивов и отправки его на любой мейл</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Владимир</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-684</link>
		<dc:creator>Владимир</dc:creator>
		<pubDate>Sat, 19 Apr 2008 19:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-684</guid>
		<description>Подключать никак не надо. После того как библиотека загружена, $zip = new ZipArchive(); должен создать объект.

Вообще ситуация странная. Если хотите, отправьте мне скрипт по email, попробую запустить у себя.</description>
		<content:encoded><![CDATA[<p>Подключать никак не надо. После того как библиотека загружена, $zip = new ZipArchive(); должен создать объект.</p>
<p>Вообще ситуация странная. Если хотите, отправьте мне скрипт по email, попробую запустить у себя.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Иоган</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-681</link>
		<dc:creator>Иоган</dc:creator>
		<pubDate>Fri, 18 Apr 2008 18:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-681</guid>
		<description>там написано:
Zip support: enabled

и всё! как его подключать?</description>
		<content:encoded><![CDATA[<p>там написано:<br />
Zip support: enabled</p>
<p>и всё! как его подключать?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Владимир</title>
		<link>http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-659</link>
		<dc:creator>Владимир</dc:creator>
		<pubDate>Wed, 16 Apr 2008 12:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/sozdanie-zip-arxivov-na-php.html#comment-659</guid>
		<description>Посмотрите, что выводит phpinfo(). Там должен быть раздел zip. И в нем параметры
Zip: enabled

Extension Version: $Id: php_zip.c,v 1.1.2.38 2007/08/06 22:02:32 bjori Exp $

Zip version: 2.0.0

Libzip version: 0.7.1

Версии могут отличаться.</description>
		<content:encoded><![CDATA[<p>Посмотрите, что выводит phpinfo(). Там должен быть раздел zip. И в нем параметры<br />
Zip: enabled</p>
<p>Extension Version: $Id: php_zip.c,v 1.1.2.38 2007/08/06 22:02:32 bjori Exp $</p>
<p>Zip version: 2.0.0</p>
<p>Libzip version: 0.7.1</p>
<p>Версии могут отличаться.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
