<?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: Tutorial: How to Create a Zip File with PHP / MySQL</title>
	<atom:link href="http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/</link>
	<description>Web Development Portfolio and Blog</description>
	<lastBuildDate>Thu, 17 May 2012 21:26:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: hamza</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-77930</link>
		<dc:creator>hamza</dc:creator>
		<pubDate>Tue, 15 May 2012 18:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-77930</guid>
		<description>http://sites.google.com/site/mizachrom</description>
		<content:encoded><![CDATA[<p><a href="http://sites.google.com/site/mizachrom" rel="nofollow">http://sites.google.com/site/mizachrom</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Damasco</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-70248</link>
		<dc:creator>Anthony Damasco</dc:creator>
		<pubDate>Mon, 27 Feb 2012 18:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-70248</guid>
		<description>Your Welcome!</description>
		<content:encoded><![CDATA[<p>Your Welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ASISH KUMAR BARAL</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-70075</link>
		<dc:creator>ASISH KUMAR BARAL</dc:creator>
		<pubDate>Sun, 26 Feb 2012 03:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-70075</guid>
		<description>THANKS A LOT</description>
		<content:encoded><![CDATA[<p>THANKS A LOT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robin</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-69252</link>
		<dc:creator>robin</dc:creator>
		<pubDate>Wed, 15 Feb 2012 12:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-69252</guid>
		<description>that is not taking much images  i have a folder that having 600 images how to do that for it......</description>
		<content:encoded><![CDATA[<p>that is not taking much images  i have a folder that having 600 images how to do that for it&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arezonline.com</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-68171</link>
		<dc:creator>arezonline.com</dc:creator>
		<pubDate>Tue, 31 Jan 2012 14:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-68171</guid>
		<description>الانتشار اللبناني ,بـــحـبك يـا لـــبـــنــان, لبنان الحرية, مغتربين لبنان, عظماء الفن اللبناني, منتديات لبنان, الحياة الزوجية, جمال المراة, اخبار المغترب, الاخبار, الفضائح الفنية, صور فنانات, لتطوير المواقع والمنتديات,الـريـاضــة, تعارف, فنانات, اعلانات</description>
		<content:encoded><![CDATA[<p>الانتشار اللبناني ,بـــحـبك يـا لـــبـــنــان, لبنان الحرية, مغتربين لبنان, عظماء الفن اللبناني, منتديات لبنان, الحياة الزوجية, جمال المراة, اخبار المغترب, الاخبار, الفضائح الفنية, صور فنانات, لتطوير المواقع والمنتديات,الـريـاضــة, تعارف, فنانات, اعلانات</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-67741</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 23 Jan 2012 05:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-67741</guid>
		<description>i agreee with this, but there was some problem at first than i worked alot on that than it became goooood... :)</description>
		<content:encoded><![CDATA[<p>i agreee with this, but there was some problem at first than i worked alot on that than it became goooood&#8230; <img src='http://anthonydamasco.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OllyZeum</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-66906</link>
		<dc:creator>OllyZeum</dc:creator>
		<pubDate>Mon, 09 Jan 2012 07:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-66906</guid>
		<description>great good lesson ...</description>
		<content:encoded><![CDATA[<p>great good lesson &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basti</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-61780</link>
		<dc:creator>Basti</dc:creator>
		<pubDate>Sat, 05 Nov 2011 01:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-61780</guid>
		<description>ups dont forget to comment out the echo ;)</description>
		<content:encoded><![CDATA[<p>ups dont forget to comment out the echo <img src='http://anthonydamasco.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basti</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-61779</link>
		<dc:creator>Basti</dc:creator>
		<pubDate>Sat, 05 Nov 2011 01:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-61779</guid>
		<description>to avoid the problem with // entries in the archive,
change and add the following code:

function create_zip($files = array(),$destination = &#039;&#039;,$overwrite = false,$useFolderStruct = false)
...
//add the files
foreach($valid_files as $file)
{
	// should we use original folder struct?
	if (!$useFolderStruct)
		$filename = basename($file);
	else if (substr($file,0,1) == &#039;/&#039;)
		$filename = substr($file, 1);
	else
		$filename = $file;
				
	echo &quot;$filename&quot;;
			
	$zip-&gt;addFile($file, $filename);
}
...</description>
		<content:encoded><![CDATA[<p>to avoid the problem with // entries in the archive,<br />
change and add the following code:</p>
<p>function create_zip($files = array(),$destination = &#8221;,$overwrite = false,$useFolderStruct = false)<br />
&#8230;<br />
//add the files<br />
foreach($valid_files as $file)<br />
{<br />
	// should we use original folder struct?<br />
	if (!$useFolderStruct)<br />
		$filename = basename($file);<br />
	else if (substr($file,0,1) == &#8216;/&#8217;)<br />
		$filename = substr($file, 1);<br />
	else<br />
		$filename = $file;</p>
<p>	echo &#8220;$filename&#8221;;</p>
<p>	$zip-&gt;addFile($file, $filename);<br />
}<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-59249</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 08 Oct 2011 18:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-59249</guid>
		<description>I agree this coad</description>
		<content:encoded><![CDATA[<p>I agree this coad</p>
]]></content:encoded>
	</item>
</channel>
</rss>

