<?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: Outputting CSV as a Downloadable File in PHP</title>
	<atom:link href="http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/</link>
	<description>Far Too Sweet To Be Sour</description>
	<lastBuildDate>Thu, 22 Dec 2011 08:44:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/comment-page-1/#comment-2447</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Thu, 13 Oct 2011 20:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=193#comment-2447</guid>
		<description>I also tried it using &lt;form action=&quot;&quot; and then process the export code via a function... I get the download, but it streams the entire webpage and the data in the array. So I get the info I want, but I have a mess with all the other code above it. Hmmmm... frustrated...</description>
		<content:encoded><![CDATA[<p>I also tried it using &lt;form action=&quot;&quot; and then process the export code via a function&#8230; I get the download, but it streams the entire webpage and the data in the array. So I get the info I want, but I have a mess with all the other code above it. Hmmmm&#8230; frustrated&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/comment-page-1/#comment-2446</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Thu, 13 Oct 2011 20:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=193#comment-2446</guid>
		<description>Would you happen to have another example of using this in a webpage... that is... I&#039;m having problems understand how the php code is executed... like say if you have a form and you click the button... the form&#039;s action goes to a php file with your code above.. but it just shows a blank screen and never shows the download dialog... what am i doing wrong?</description>
		<content:encoded><![CDATA[<p>Would you happen to have another example of using this in a webpage&#8230; that is&#8230; I&#8217;m having problems understand how the php code is executed&#8230; like say if you have a form and you click the button&#8230; the form&#8217;s action goes to a php file with your code above.. but it just shows a blank screen and never shows the download dialog&#8230; what am i doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Motraghi</title>
		<link>http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/comment-page-1/#comment-2406</link>
		<dc:creator>Sebastian Motraghi</dc:creator>
		<pubDate>Thu, 25 Nov 2010 12:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=193#comment-2406</guid>
		<description>This article was very helpful – thanks very much.</description>
		<content:encoded><![CDATA[<p>This article was very helpful – thanks very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Generate a Downloadable CSV file with PHP</title>
		<link>http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/comment-page-1/#comment-2399</link>
		<dc:creator>Generate a Downloadable CSV file with PHP</dc:creator>
		<pubDate>Fri, 08 Oct 2010 21:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=193#comment-2399</guid>
		<description>[...] rows to output using fputcsv() and tell the browser to hand the user a downloadable file. &#8220;Outputting CSV as a Downloadable File in PHP&#8221; by Daniel Cousineau covers the entire process from start to [...]</description>
		<content:encoded><![CDATA[<p>[...] rows to output using fputcsv() and tell the browser to hand the user a downloadable file. &ldquo;Outputting CSV as a Downloadable File in PHP&rdquo; by Daniel Cousineau covers the entire process from start to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/comment-page-1/#comment-339</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 20 Jan 2009 14:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=193#comment-339</guid>
		<description>Adding the no-store, no-cache header causes IE to fail to download the file with the error &quot;Internet Explorer cannot download....blah&quot; . As far as I can tell this is a long standing bug in IE. Removing this line fixes the problem. However, I haven&#039;t tested whether IE then actually caches the file or not.</description>
		<content:encoded><![CDATA[<p>Adding the no-store, no-cache header causes IE to fail to download the file with the error &#8220;Internet Explorer cannot download&#8230;.blah&#8221; . As far as I can tell this is a long standing bug in IE. Removing this line fixes the problem. However, I haven&#8217;t tested whether IE then actually caches the file or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Cousineau&#8217;s Blog: Outputting CSV as a Downloadable File in PHP : Dragonfly Networks</title>
		<link>http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/comment-page-1/#comment-204</link>
		<dc:creator>Daniel Cousineau&#8217;s Blog: Outputting CSV as a Downloadable File in PHP : Dragonfly Networks</dc:creator>
		<pubDate>Tue, 14 Oct 2008 10:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=193#comment-204</guid>
		<description>[...] a recent post to his blog Daniel Cousineau shows a method for correctly outputting CSV data in push down to the [...]</description>
		<content:encoded><![CDATA[<p>[...] a recent post to his blog Daniel Cousineau shows a method for correctly outputting CSV data in push down to the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Cousineau</title>
		<link>http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/comment-page-1/#comment-203</link>
		<dc:creator>Daniel Cousineau</dc:creator>
		<pubDate>Mon, 13 Oct 2008 16:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=193#comment-203</guid>
		<description>@kL: While that is acceptable, it&#039;s good practice to set proper headings to prevent browsers from possibly assuming the file to be straight text (which CSV really is anyways) and outputting it in the browser as opposed to providing a download window so you can open directly into Excel/OpenOffice.</description>
		<content:encoded><![CDATA[<p>@kL: While that is acceptable, it&#8217;s good practice to set proper headings to prevent browsers from possibly assuming the file to be straight text (which CSV really is anyways) and outputting it in the browser as opposed to providing a download window so you can open directly into Excel/OpenOffice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kL</title>
		<link>http://www.toosweettobesour.com/2008/10/10/outputting-csv-as-a-downloadable-file-in-php/comment-page-1/#comment-201</link>
		<dc:creator>kL</dc:creator>
		<pubDate>Sat, 11 Oct 2008 14:29:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=193#comment-201</guid>
		<description>Bleh.

Use make URL like:

realfile.php/fakefile.csv

and you won&#039;t need Content-Disposition (or use mod_rewrite to hide .php completely)</description>
		<content:encoded><![CDATA[<p>Bleh.</p>
<p>Use make URL like:</p>
<p>realfile.php/fakefile.csv</p>
<p>and you won&#8217;t need Content-Disposition (or use mod_rewrite to hide .php completely)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

