<?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>Blog.hio.fr &#187; mp3</title>
	<atom:link href="http://blog.hio.fr/tag/mp3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hio.fr</link>
	<description></description>
	<lastBuildDate>Tue, 07 Sep 2010 04:42:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>PHP comment &#171;&#160;streamer&#160;&#187; du mp3 en php</title>
		<link>http://blog.hio.fr/2009/04/29/php-comment-streamer-du-mp3-en-php/</link>
		<comments>http://blog.hio.fr/2009/04/29/php-comment-streamer-du-mp3-en-php/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 11:12:16 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[stream]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=330</guid>
		<description><![CDATA[J'ai du récemment envoyer des mp3 a un player flash sans que le chemin des mp3 ne soit accessible a l'utilisateur et qu'ils soient stocké hors de la racine du serveur web.]]></description>
			<content:encoded><![CDATA[<p>J&#8217;ai du récemment envoyer des mp3 a un player flash sans que le chemin des mp3 ne soit accessible a l&#8217;utilisateur et qu&#8217;ils soient stocké hors de la racine du serveur web.</p>
<p>Le bout de code qui sert a servir les mp3,<br />
attention a vous de vérifier que ce que vous envoyez est bien du mp3 ^^</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$file_path</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/home/hio/monfichier.mp3'</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-type: audio/mpeg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Disposition: inline; filename=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$file_path</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-transfer-encoding: binary'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-length: '</span><span style="color: #339933;">.</span><span style="color: #990000;">filesize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file_path</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">readfile</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file_path</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Voila rien de bien compliquer ^^</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/04/29/php-comment-streamer-du-mp3-en-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
