<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gaya Design &#187; counter</title>
	<atom:link href="http://www.gayadesign.com/tag/counter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gayadesign.com</link>
	<description>PHP, CSS, xhtml, javascript / jquery tutorials</description>
	<lastBuildDate>Mon, 06 Feb 2012 11:09:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Download counter in PHP using .htaccess</title>
		<link>http://www.gayadesign.com/diy/download-counter-in-php-using-htaccess/</link>
		<comments>http://www.gayadesign.com/diy/download-counter-in-php-using-htaccess/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 14:14:30 +0000</pubDate>
		<dc:creator>Gaya</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[counter]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://dev.gayadesign.nl/?p=96</guid>
		<description><![CDATA[Ever had this thought: "I want to fire something <strong>extra </strong>up when somebody downloads a certain file."? This can be easily fixed by making all you download links link to a php page and output the download file for you. But what if the file is called directly in the browser, say <a href="http://www.gayadesign.com/scripts/photonav/photonav.zip">http://www.gayadesign.com/scripts/photonav/photonav.zip</a>? Apache will happily give the file to the user, without me noticing it. Luckily for us, .htaccess is a great place to mess around with Apache.

This article will explain how to make pre-download conditions in php using .htaccess. I'll make a download counter in this one.
<div class="border"><a href="http://www.gayadesign.com/diy/download-counter-in-php-using-htaccess/"><img class="aligncenter size-full wp-image-98" title="downloadcounter" src="http://www.gayadesign.com/wp-content/uploads/2009/03/downloadcounter.jpg" alt="downloadcounter" width="532" height="169" /></a></div>]]></description>
		<wfw:commentRss>http://www.gayadesign.com/diy/download-counter-in-php-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
	</channel>
</rss>

