<?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: Force a download on the browser</title>
	<atom:link href="http://blogs.vinuthomas.com/2006/06/09/150/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.vinuthomas.com/2006/06/09/150/</link>
	<description>A Tech Discovery Blog on PHP, Ajax, Security and Social Media.</description>
	<lastBuildDate>Thu, 13 Oct 2011 13:51:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: vinu</title>
		<link>http://blogs.vinuthomas.com/2006/06/09/150/comment-page-1/#comment-5869</link>
		<dc:creator>vinu</dc:creator>
		<pubDate>Tue, 19 Sep 2006 13:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2006/06/09/150/#comment-5869</guid>
		<description>Jon,

Here&#039;s a simple example which throws a csv file for download:

&lt;code&gt;header(&#039;Pragma: public&#039;);
header(&#039;Last-Modified: &#039;.gmdate(&#039;D, d M Y H:i:s&#039;) . &#039; GMT&#039;);
header(&#039;Cache-Control: no-store, no-cache, must-revalidate&#039;);
header(&#039;Cache-Control: pre-check=0, post-check=0, max-age=0&#039;);
header(&#039;Content-Transfer-Encoding: none&#039;);
header(&#039;Content-Type: application/excel; name=&quot;mycsvdownload.csv&quot;&#039;);
header(&#039;Content-Disposition: attachment; filename=&quot;mycsvdownload.csv&quot;&#039;);
print (&quot;Name, Email, Location\\n&quot;);
print (&quot;Vinu, me@xyz.com, Bangalore\\n&quot;); &lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>Here&#8217;s a simple example which throws a csv file for download:</p>
<p><code>header('Pragma: public');<br />
header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT');<br />
header('Cache-Control: no-store, no-cache, must-revalidate');<br />
header('Cache-Control: pre-check=0, post-check=0, max-age=0');<br />
header('Content-Transfer-Encoding: none');<br />
header('Content-Type: application/excel; name="mycsvdownload.csv"');<br />
header('Content-Disposition: attachment; filename="mycsvdownload.csv"');<br />
print ("Name, Email, Location\\n");<br />
print ("Vinu, <a href="mailto:me@xyz.com">me@xyz.com</a>, Bangalore\\n"); </code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinuthomas</title>
		<link>http://blogs.vinuthomas.com/2006/06/09/150/comment-page-1/#comment-40667</link>
		<dc:creator>vinuthomas</dc:creator>
		<pubDate>Tue, 19 Sep 2006 13:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2006/06/09/150/#comment-40667</guid>
		<description>Jon,

Here&#039;s a simple example which throws a csv file for download:

&lt;code&gt;header(&#039;Pragma: public&#039;);
header(&#039;Last-Modified: &#039;.gmdate(&#039;D, d M Y H:i:s&#039;) . &#039; GMT&#039;);
header(&#039;Cache-Control: no-store, no-cache, must-revalidate&#039;);
header(&#039;Cache-Control: pre-check=0, post-check=0, max-age=0&#039;);
header(&#039;Content-Transfer-Encoding: none&#039;);
header(&#039;Content-Type: application/excel; name=&quot;mycsvdownload.csv&quot;&#039;);
header(&#039;Content-Disposition: attachment; filename=&quot;mycsvdownload.csv&quot;&#039;);
print (&quot;Name, Email, Location\n&quot;);
print (&quot;Vinu, me@xyz.com, Bangalore\n&quot;); &lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>Here&#8217;s a simple example which throws a csv file for download:</p>
<p><code>header('Pragma: public');<br />
header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT');<br />
header('Cache-Control: no-store, no-cache, must-revalidate');<br />
header('Cache-Control: pre-check=0, post-check=0, max-age=0');<br />
header('Content-Transfer-Encoding: none');<br />
header('Content-Type: application/excel; name="mycsvdownload.csv"');<br />
header('Content-Disposition: attachment; filename="mycsvdownload.csv"');<br />
print ("Name, Email, Location\n");<br />
print ("Vinu, <a href="mailto:me@xyz.com">me@xyz.com</a>, Bangalore\n"); </code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon B</title>
		<link>http://blogs.vinuthomas.com/2006/06/09/150/comment-page-1/#comment-5856</link>
		<dc:creator>Jon B</dc:creator>
		<pubDate>Mon, 18 Sep 2006 17:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2006/06/09/150/#comment-5856</guid>
		<description>Can you give an example of how this is used, using actual filenames? I&#039;m unclear on how $path-&gt;pdfname and $path-&gt;pdfpath would be written in actual use. Thanks!</description>
		<content:encoded><![CDATA[<p>Can you give an example of how this is used, using actual filenames? I&#8217;m unclear on how $path-&gt;pdfname and $path-&gt;pdfpath would be written in actual use. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon B</title>
		<link>http://blogs.vinuthomas.com/2006/06/09/150/comment-page-1/#comment-40666</link>
		<dc:creator>Jon B</dc:creator>
		<pubDate>Mon, 18 Sep 2006 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2006/06/09/150/#comment-40666</guid>
		<description>Can you give an example of how this is used, using actual filenames? I&#039;m unclear on how $path-&gt;pdfname and $path-&gt;pdfpath would be written in actual use. Thanks!</description>
		<content:encoded><![CDATA[<p>Can you give an example of how this is used, using actual filenames? I&#8217;m unclear on how $path-&gt;pdfname and $path-&gt;pdfpath would be written in actual use. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 295/296 objects using disk: basic

Served from: blogs.vinuthomas.com @ 2012-02-07 20:17:59 -->
