<?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>hihn.org &#187; header</title>
	<atom:link href="http://hihn.org/tag/header/feed/" rel="self" type="application/rss+xml" />
	<link>http://hihn.org</link>
	<description></description>
	<lastBuildDate>Sun, 27 Nov 2011 18:59:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mit PHP mp3-Download anbieten</title>
		<link>http://hihn.org/2007/12/mit-php-mp3-download-anbieten/</link>
		<comments>http://hihn.org/2007/12/mit-php-mp3-download-anbieten/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 19:32:24 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.hihn.org/?p=5</guid>
		<description><![CDATA[Mit folgendem Code kann man mp3-Dateien zum Download anbieten ohne die Datei direkt zu verlinken: &#60;span style=&#34;color: #000000&#34;&#62; &#60;span style=&#34;color: #0000bb&#34;&#62; &#38;lt;?php $mm_type&#60;/span&#62;&#60;span style=&#34;color: #007700&#34;&#62;=&#60;/span&#62;&#60;span style=&#34;color: #dd0000&#34;&#62;&#34;application/octet-stream&#34;&#60;/span&#62;&#60;span style=&#34;color: #007700&#34;&#62;;&#60;/span&#62;&#60;/span&#62; header(&#8220;Cache-Control: public, must-revalidate&#8221;); header(&#8220;Pragma: hack&#8221;); header(&#8220;Content-Type: &#8221; . $mm_type); header(&#8220;Content-Length: &#8221; .(string)(filesize($path)) ); header(&#8216;Content-Disposition: attachment; filename=&#8221;&#8216;.$name.&#8216;&#8221;&#8216;); header(&#8220;Content-Transfer-Encoding: binary\n&#8221;); readfile($path); ?&#62; Habe es auf php.net gefunden und [...]]]></description>
			<content:encoded><![CDATA[<p>Mit folgendem Code kann man mp3-Dateien zum Download anbieten ohne die Datei direkt zu verlinken:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;span style=&quot;color: #000000&quot;&gt;<br />
&lt;span style=&quot;color: #0000bb&quot;&gt;<br />
&amp;lt;?php<br />
$mm_type&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dd0000&quot;&gt;&quot;application/octet-stream&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;/span&gt;&lt;/span&gt;</div></div>
<p><span style="color: #0000bb">header</span><span style="color: #007700">(</span><span style="color: #dd0000">&#8220;Cache-Control: public, must-revalidate&#8221;</span><span style="color: #007700">);<br />
</span><span style="color: #0000bb">header</span><span style="color: #007700">(</span><span style="color: #dd0000">&#8220;Pragma: hack&#8221;</span><span style="color: #007700">); </span><span style="color: #ff8000"><br />
</span><span style="color: #0000bb">header</span><span style="color: #007700">(</span><span style="color: #dd0000">&#8220;Content-Type: &#8221; </span><span style="color: #007700">. </span><span style="color: #0000bb">$mm_type</span><span style="color: #007700">);<br />
</span><span style="color: #0000bb">header</span><span style="color: #007700">(</span><span style="color: #dd0000">&#8220;Content-Length: &#8221; </span><span style="color: #007700">.(string)(</span><span style="color: #0000bb">filesize</span><span style="color: #007700">(</span><span style="color: #0000bb">$path</span><span style="color: #007700">)) );<br />
</span><span style="color: #0000bb">header</span><span style="color: #007700">(</span><span style="color: #dd0000">&#8216;Content-Disposition: attachment; filename=&#8221;&#8216;</span><span style="color: #007700">.</span><span style="color: #0000bb">$name</span><span style="color: #007700">.</span><span style="color: #dd0000">&#8216;&#8221;&#8216;</span><span style="color: #007700">);<br />
</span><span style="color: #0000bb">header</span><span style="color: #007700">(</span><span style="color: #dd0000">&#8220;Content-Transfer-Encoding: binary\n&#8221;</span><span style="color: #007700">);</span></p>
<p><span style="color: #0000bb">readfile</span><span style="color: #007700">(</span><span style="color: #0000bb">$path</span><span style="color: #007700">);<br />
</span><span style="color: #0000bb">?&gt;</span></p>
<p>Habe es auf php.net gefunden und für meine Bedürfnisse umgeschrieben. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2007/12/mit-php-mp3-download-anbieten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

