<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Zip a folder on the server with php</title>
	<atom:link href="http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/</link>
	<description>Gadget reviews, web design tips and tricks and much more</description>
	<lastBuildDate>Tue, 17 Jan 2012 19:02:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Abdul Basit</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-7501</link>
		<dc:creator>Abdul Basit</dc:creator>
		<pubDate>Mon, 28 Nov 2011 12:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-7501</guid>
		<description>Thanks  and Great Script again Thanks alot</description>
		<content:encoded><![CDATA[<p>Thanks  and Great Script again Thanks alot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NH</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-7223</link>
		<dc:creator>NH</dc:creator>
		<pubDate>Wed, 23 Nov 2011 15:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-7223</guid>
		<description>Thanks a lot! worked perfectly</description>
		<content:encoded><![CDATA[<p>Thanks a lot! worked perfectly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diễn đàn rao vặt</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-6461</link>
		<dc:creator>Diễn đàn rao vặt</dc:creator>
		<pubDate>Thu, 03 Nov 2011 09:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-6461</guid>
		<description>thanks webandblog code good</description>
		<content:encoded><![CDATA[<p>thanks webandblog code good</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-5705</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Wed, 05 Oct 2011 04:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-5705</guid>
		<description>It’s really very nice script.It helped me a lot.
Thanks.</description>
		<content:encoded><![CDATA[<p>It’s really very nice script.It helped me a lot.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frasiek</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-4904</link>
		<dc:creator>frasiek</dc:creator>
		<pubDate>Mon, 29 Aug 2011 09:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-4904</guid>
		<description>Really great script, but i added something:

$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($_SERVER[&quot;DOCUMENT_ROOT&quot;].DIRECTORY_SEPARATOR.&quot;application&quot;));
        foreach ($iterator as $key =&gt; $value) {
            $zip-&gt;addFile(realpath($key), str_replace($_SERVER[&quot;DOCUMENT_ROOT&quot;].DIRECTORY_SEPARATOR, &#039;&#039;, $key));
        }

it is useful if using absolute paths.</description>
		<content:encoded><![CDATA[<p>Really great script, but i added something:</p>
<p>$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($_SERVER["DOCUMENT_ROOT"].DIRECTORY_SEPARATOR.&#8221;application&#8221;));<br />
        foreach ($iterator as $key =&gt; $value) {<br />
            $zip-&gt;addFile(realpath($key), str_replace($_SERVER["DOCUMENT_ROOT"].DIRECTORY_SEPARATOR, &#8221;, $key));<br />
        }</p>
<p>it is useful if using absolute paths.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Magos</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-4467</link>
		<dc:creator>Johan Magos</dc:creator>
		<pubDate>Tue, 02 Aug 2011 07:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-4467</guid>
		<description>I have a problem with any of the samples with Zipping that I find in the internet. When I look at the zipped file after the process, I always get the absolute folders create within the zip file.
For example: C/Workspace/temporaray/ThemeFile/ThemeFile/...

Should I just be getting folders starting from ThemeFile?

Can anyone help me how to fix this??</description>
		<content:encoded><![CDATA[<p>I have a problem with any of the samples with Zipping that I find in the internet. When I look at the zipped file after the process, I always get the absolute folders create within the zip file.<br />
For example: C/Workspace/temporaray/ThemeFile/ThemeFile/&#8230;</p>
<p>Should I just be getting folders starting from ThemeFile?</p>
<p>Can anyone help me how to fix this??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DC</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-4144</link>
		<dc:creator>DC</dc:creator>
		<pubDate>Thu, 21 Jul 2011 12:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-4144</guid>
		<description>Hi

Great script!

Is there a way of using this to Zip the contents of the DIR without the DIR inside the zip, so that all files are at the root of the Zip and not in a DIR??

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Great script!</p>
<p>Is there a way of using this to Zip the contents of the DIR without the DIR inside the zip, so that all files are at the root of the Zip and not in a DIR??</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chen</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-3513</link>
		<dc:creator>Chen</dc:creator>
		<pubDate>Sat, 18 Jun 2011 04:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-3513</guid>
		<description>Thanks, great job.</description>
		<content:encoded><![CDATA[<p>Thanks, great job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Chester</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-1819</link>
		<dc:creator>Raymond Chester</dc:creator>
		<pubDate>Mon, 21 Feb 2011 11:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-1819</guid>
		<description>What a great script.
Thanks.</description>
		<content:encoded><![CDATA[<p>What a great script.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nisha</title>
		<link>http://www.webandblog.com/hacks/zip-a-folder-on-the-server-with-php/comment-page-1/#comment-1670</link>
		<dc:creator>Nisha</dc:creator>
		<pubDate>Mon, 07 Feb 2011 06:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.webandblog.com/?p=44#comment-1670</guid>
		<description>It&#039;s really very nice script.It helped me a lot.
Thanks.</description>
		<content:encoded><![CDATA[<p>It&#8217;s really very nice script.It helped me a lot.<br />
Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.304 seconds -->

