<?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>Sun, 05 Feb 2012 12:02:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<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>
	<item>
		<title>By: Zip File with PHP &#38; MySQL &#124; KC-TUTOR</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-58500</link>
		<dc:creator>Zip File with PHP &#38; MySQL &#124; KC-TUTOR</dc:creator>
		<pubDate>Thu, 29 Sep 2011 14:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-58500</guid>
		<description>[...] article &#105;&#115; copyright &#098;&#121; AnthonyDamasco - Zip File &#119;&#105;&#116;&#104; PHP &amp; MySQL &#8230;.. Posts Related to Zip File with PHP &amp; MySQLForm Validation with AJAXForm Validation - This [...]</description>
		<content:encoded><![CDATA[<p>[...] article &#105;&#115; copyright &#098;&#121; AnthonyDamasco - Zip File &#119;&#105;&#116;&#104; PHP &amp; MySQL &#8230;.. Posts Related to Zip File with PHP &amp; MySQLForm Validation with AJAXForm Validation &#8211; This [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kumar</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-58392</link>
		<dc:creator>kumar</dc:creator>
		<pubDate>Wed, 28 Sep 2011 06:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-58392</guid>
		<description>you go to w3schools.com and study...this website is for beginners only</description>
		<content:encoded><![CDATA[<p>you go to w3schools.com and study&#8230;this website is for beginners only</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kumar</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-58390</link>
		<dc:creator>kumar</dc:creator>
		<pubDate>Wed, 28 Sep 2011 06:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-58390</guid>
		<description>you are giving wonderful information .....thanks a lot...</description>
		<content:encoded><![CDATA[<p>you are giving wonderful information &#8230;..thanks a lot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shahbaz Ahmed</title>
		<link>http://anthonydamasco.net/blog/tutorial-how-to-create-a-zip-file-with-php-mysql/comment-page-1/#comment-43193</link>
		<dc:creator>Shahbaz Ahmed</dc:creator>
		<pubDate>Wed, 29 Jun 2011 17:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://anthonydamasco.net/blog/?p=302#comment-43193</guid>
		<description>hi , can anyone tell me how to do this, i m trying to do but cant do, basically i m begginer in php so wana learn new things, plz help me to guide thsi tutorials</description>
		<content:encoded><![CDATA[<p>hi , can anyone tell me how to do this, i m trying to do but cant do, basically i m begginer in php so wana learn new things, plz help me to guide thsi tutorials</p>
]]></content:encoded>
	</item>
</channel>
</rss>

