<?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: Protecting multiple downloads using unique URLs</title>
	<atom:link href="http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/</link>
	<description>Ardamis is a tiny web development studio specializing in high-quality, handmade web sites.</description>
	<lastBuildDate>Sat, 20 Mar 2010 17:30:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: amirul</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-26369</link>
		<dc:creator>amirul</dc:creator>
		<pubDate>Fri, 22 Jan 2010 00:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-26369</guid>
		<description>resume download not possible by our script.if i cancel download then nest time i can not download.so no resume capacity of our code.</description>
		<content:encoded><![CDATA[<p>resume download not possible by our script.if i cancel download then nest time i can not download.so no resume capacity of our code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meg</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-25770</link>
		<dc:creator>Meg</dc:creator>
		<pubDate>Thu, 07 Jan 2010 12:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-25770</guid>
		<description>Nevermind. I think I found a solution. I just change the line: 

header(‘Content-Disposition: attachment; filename=”‘.$fakefilename.’”‘);
to
header(‘Content-Disposition: attachment; filename=”‘.$realfilename.’”‘);

Thanks for the script!

Meg</description>
		<content:encoded><![CDATA[<p>Nevermind. I think I found a solution. I just change the line: </p>
<p>header(‘Content-Disposition: attachment; filename=”‘.$fakefilename.’”‘);<br />
to<br />
header(‘Content-Disposition: attachment; filename=”‘.$realfilename.’”‘);</p>
<p>Thanks for the script!</p>
<p>Meg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meg</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-25769</link>
		<dc:creator>Meg</dc:creator>
		<pubDate>Thu, 07 Jan 2010 11:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-25769</guid>
		<description>By the way, also this line in config.php

// Set the name of local download file - this is what the visitor&#039;s file will actually be called when he/she saves it
$fakefilename = &quot;bogus_download_name.zip&quot;;</description>
		<content:encoded><![CDATA[<p>By the way, also this line in config.php</p>
<p>// Set the name of local download file &#8211; this is what the visitor&#8217;s file will actually be called when he/she saves it<br />
$fakefilename = &#8220;bogus_download_name.zip&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meg</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-25767</link>
		<dc:creator>Meg</dc:creator>
		<pubDate>Thu, 07 Jan 2010 11:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-25767</guid>
		<description>Hey, this script is awesome. But I have a question: How do I go about removing the option that creates the $fakefilename? I just want it to be the original one. 

I have a 100 or some files I want to send to a friend using this and they all will appear with the same name except the ( (1), (2) copy tags) behind them. I want all to have a unique name. 

So I tried to delete this line: header(&#039;Content-Disposition: attachment; filename=&quot;&#039;.$fakefilename.&#039;&quot;&#039;);

But it only gave me the download.php instead of the zip file. What do I have to modify to make this work?

Thanks, Meg</description>
		<content:encoded><![CDATA[<p>Hey, this script is awesome. But I have a question: How do I go about removing the option that creates the $fakefilename? I just want it to be the original one. </p>
<p>I have a 100 or some files I want to send to a friend using this and they all will appear with the same name except the ( (1), (2) copy tags) behind them. I want all to have a unique name. </p>
<p>So I tried to delete this line: header(&#8216;Content-Disposition: attachment; filename=&#8221;&#8216;.$fakefilename.&#8217;&#8221;&#8216;);</p>
<p>But it only gave me the download.php instead of the zip file. What do I have to modify to make this work?</p>
<p>Thanks, Meg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-23633</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 15 Nov 2009 11:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-23633</guid>
		<description>Ardamis - I love this script.
Would it be possible to update the download counter after successful download?
Now the download counter is always updated even when download is canceled before it is finished or when the download is somehow not finished successfully.</description>
		<content:encoded><![CDATA[<p>Ardamis &#8211; I love this script.<br />
Would it be possible to update the download counter after successful download?<br />
Now the download counter is always updated even when download is canceled before it is finished or when the download is somehow not finished successfully.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruark</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-23448</link>
		<dc:creator>Ruark</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-23448</guid>
		<description>ardamis, what a great piece of code :)

My 1st question is regarding the real file URL. I would like to structure where the files are kept. I dont really like leaving all files in one folder (security and ease of keeping it neat)

Is there anyway to do this? the dropdown should be able to show directory structure should it not?

My 2nd question is regarding the keylimit. Why is it limited to 20? is this a code limit or a hash generation limit? If I want to use this to send multiple (say 50) people unique links to the same file, would I need to increase the hash character amount?

thanks again for your reply and this great piece of php</description>
		<content:encoded><![CDATA[<p>ardamis, what a great piece of code <img src='http://www.ardamis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My 1st question is regarding the real file URL. I would like to structure where the files are kept. I dont really like leaving all files in one folder (security and ease of keeping it neat)</p>
<p>Is there anyway to do this? the dropdown should be able to show directory structure should it not?</p>
<p>My 2nd question is regarding the keylimit. Why is it limited to 20? is this a code limit or a hash generation limit? If I want to use this to send multiple (say 50) people unique links to the same file, would I need to increase the hash character amount?</p>
<p>thanks again for your reply and this great piece of php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ardamis</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-23068</link>
		<dc:creator>ardamis</dc:creator>
		<pubDate>Fri, 30 Oct 2009 04:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-23068</guid>
		<description>OK, I&#039;ve updated the script to fix the issue Chad reported.  I&#039;ve also reduced the size of the keys to 12 characters, and made some changes to the database.

It&#039;s now possible to add a list of download files to the $realfilenames variable in config.php, so that the form generates a &lt;select&gt; menu of all the files (instead of making you type the name in to an &lt;input&gt; field each time).

I&#039;ve also added a number of comments to download.php to better explain step-by-step the process by which each key is validated.</description>
		<content:encoded><![CDATA[<p>OK, I&#8217;ve updated the script to fix the issue Chad reported.  I&#8217;ve also reduced the size of the keys to 12 characters, and made some changes to the database.</p>
<p>It&#8217;s now possible to add a list of download files to the $realfilenames variable in config.php, so that the form generates a &lt;select&gt; menu of all the files (instead of making you type the name in to an &lt;input&gt; field each time).</p>
<p>I&#8217;ve also added a number of comments to download.php to better explain step-by-step the process by which each key is validated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-22989</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Wed, 28 Oct 2009 17:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-22989</guid>
		<description>I downloaded and installed this with no problem. It works great but only for 1 file. Whatever file I have set as the default file ($realfilename) will always download fine. if i have multiple files in the same directory, and enter a different file name in the &quot;downloadkey.php&quot; form, the default file still downloads. How can I use this and choose which file to generate the download key for? Please help...I love this!!</description>
		<content:encoded><![CDATA[<p>I downloaded and installed this with no problem. It works great but only for 1 file. Whatever file I have set as the default file ($realfilename) will always download fine. if i have multiple files in the same directory, and enter a different file name in the &#8220;downloadkey.php&#8221; form, the default file still downloads. How can I use this and choose which file to generate the download key for? Please help&#8230;I love this!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lascaux21</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-20949</link>
		<dc:creator>lascaux21</dc:creator>
		<pubDate>Thu, 24 Sep 2009 21:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-20949</guid>
		<description>I&#039;ve also had an issue with large file sized ZIP files ending too soon. I&#039;ve managed to get around the problem by replacing the &quot;readfile&quot; with a header(&quot;Location&quot;), but this isn&#039;t optimum. Anyone figured out a way to solve this? My research indicates it may have something to do with &quot;chunked transfer encoding&quot;, and someone suggested using blobs to calculate size. Over my head, unfortunately...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve also had an issue with large file sized ZIP files ending too soon. I&#8217;ve managed to get around the problem by replacing the &#8220;readfile&#8221; with a header(&#8220;Location&#8221;), but this isn&#8217;t optimum. Anyone figured out a way to solve this? My research indicates it may have something to do with &#8220;chunked transfer encoding&#8221;, and someone suggested using blobs to calculate size. Over my head, unfortunately&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.ardamis.com/2009/06/26/protecting-multiple-downloads-using-unique-urls/#comment-19180</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 24 Aug 2009 12:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/?p=281#comment-19180</guid>
		<description>Thank you Ardamis for wonderful script!

Would it be possible to add input fields for $realfilename and $fakefilename in to the downloadkey.php so that it would be easier to create download keys for multiple files?

Also where could I change the location for the downloadable file so that I could locate the file outside of the www (in the server root)?</description>
		<content:encoded><![CDATA[<p>Thank you Ardamis for wonderful script!</p>
<p>Would it be possible to add input fields for $realfilename and $fakefilename in to the downloadkey.php so that it would be easier to create download keys for multiple files?</p>
<p>Also where could I change the location for the downloadable file so that I could locate the file outside of the www (in the server root)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
