<?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"
	>
<channel>
	<title>Comments on: gifs that execute a php script</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/</link>
	<description></description>
	<pubDate>Tue, 07 Oct 2008 17:08:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Andrew</title>
		<link>http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12984</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 25 Oct 2004 03:34:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12984</guid>
		<description>Instead of AddType I often use ForceType wrapped inside a Files block in my .htaccess. This way I can restrict it to a particular file or set of files. I've done this for both images and CSS files.</description>
		<content:encoded><![CDATA[<p>Instead of AddType I often use ForceType wrapped inside a Files block in my .htaccess. This way I can restrict it to a particular file or set of files. I&#039;ve done this for both images and CSS files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12914</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 20 Oct 2004 12:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12914</guid>
		<description>My problem was that any filename with an extension other .gif or .jpg was getting stripped out. AS WELL, I needed to be able to pass the script some variables.

So, I was fine with the first solution. But the minute I started pulling the something.gif?var=value etc. etc. .. it got yanked. So I had to find another (albeit) sneaky way to pass variables into the url.

Not sure about the script.php/spacer.gif thing. I suspect the .php would have tipped it off. As well - not sure how I would pass variables using that method without being obvious. (ie. without doing file.ext?var=value)</description>
		<content:encoded><![CDATA[<p>My problem was that any filename with an extension other .gif or .jpg was getting stripped out. AS WELL, I needed to be able to pass the script some variables.</p>
<p>So, I was fine with the first solution. But the minute I started pulling the something.gif?var=value etc. etc. .. it got yanked. So I had to find another (albeit) sneaky way to pass variables into the url.</p>
<p>Not sure about the script.php/spacer.gif thing. I suspect the .php would have tipped it off. As well - not sure how I would pass variables using that method without being obvious. (ie. without doing file.ext?var=value)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12912</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 20 Oct 2004 09:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12912</guid>
		<description>if you do need a .gif extension for some purpose, like an avatar for a bbs that checks filenames, it is possible to add /image.gif to the end of the script.

script.php/image.gif

no rewrites needed then.</description>
		<content:encoded><![CDATA[<p>if you do need a .gif extension for some purpose, like an avatar for a bbs that checks filenames, it is possible to add /image.gif to the end of the script.</p>
<p>script.php/image.gif</p>
<p>no rewrites needed then.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J</title>
		<link>http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12911</link>
		<dc:creator>Mark J</dc:creator>
		<pubDate>Wed, 20 Oct 2004 07:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12911</guid>
		<description>If you do not need the gif to have a ".gif" extension, you can skip the mod-rewrite stuff and just point to the php script, which will behave like a gif to anyone who views it.

You can do this with all types of files.  Try giving your CSS files a ".php" extension and &lt;h3&gt;header('Content-Type: text/css');&lt;/h3&gt; at the top and get creative. :-)</description>
		<content:encoded><![CDATA[<p>If you do not need the gif to have a &#034;.gif&#034; extension, you can skip the mod-rewrite stuff and just point to the php script, which will behave like a gif to anyone who views it.</p>
<p>You can do this with all types of files.  Try giving your CSS files a &#034;.php&#034; extension and<br />
<h3>header(&#039;Content-Type: text/css&#039;);</h3>
<p> at the top and get creative. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jenna</title>
		<link>http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12908</link>
		<dc:creator>Jenna</dc:creator>
		<pubDate>Tue, 19 Oct 2004 18:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/10/19/gifs-that-execute-a-php-script/#comment-12908</guid>
		<description>ooooh! great tip!</description>
		<content:encoded><![CDATA[<p>ooooh! great tip!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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