<?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>Блог Арт-директора &#187; snippet</title>
	<atom:link href="http://x3.ekwo.dp.ua/tag/snippet/feed/" rel="self" type="application/rss+xml" />
	<link>http://x3.ekwo.dp.ua</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 27 Sep 2011 04:58:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Автоматический старт скачивания из PHP</title>
		<link>http://x3.ekwo.dp.ua/2010/03/17/avtomaticheskij-start-skachivaniya-iz-php/</link>
		<comments>http://x3.ekwo.dp.ua/2010/03/17/avtomaticheskij-start-skachivaniya-iz-php/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 09:52:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[разработка]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://x3.ekwo.dp.ua/?p=569</guid>
		<description><![CDATA[А что делать, если нужно начать скачивание файла из PHP после отправки формы? Очень просто, в файле, который обрабатывает форму в конце файла ставим код: header(&#8220;Content-Disposition: attachment; filename=&#8221;" . basename($_POST['link']) . &#8220;&#8221;"); header(&#8220;Content-Type: application/force-download&#8221;); header(&#8220;Content-Length: &#8221; . filesize($_POST['link'])); header(&#8220;Connection: close&#8221;);]]></description>
			<content:encoded><![CDATA[<p>А что делать, если нужно начать скачивание файла из PHP после отправки формы?</p>
<p>Очень просто, в файле, который обрабатывает форму в конце файла ставим код:</p>
<blockquote>
<div id="_mcePaste">header(&#8220;Content-Disposition: attachment; filename=&#8221;" . basename($_POST['link']) . &#8220;&#8221;");</div>
<div id="_mcePaste">header(&#8220;Content-Type: application/force-download&#8221;);</div>
<div id="_mcePaste">header(&#8220;Content-Length: &#8221; . filesize($_POST['link']));</div>
<div id="_mcePaste">header(&#8220;Connection: close&#8221;);</div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://x3.ekwo.dp.ua/2010/03/17/avtomaticheskij-start-skachivaniya-iz-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

