<?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: How I PHP: X-SendFile</title>
	<atom:link href="http://www.jasny.net/articles/how-i-php-x-sendfile/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasny.net/articles/how-i-php-x-sendfile/</link>
	<description>It&#039;s all about me, mysql and Einstein.</description>
	<lastBuildDate>Thu, 09 Sep 2010 15:08:00 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tom</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-209625</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Fri, 30 Oct 2009 17:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-209625</guid>
		<description>so one of the downfalls i&#039;ve found with this method is that, unlike with the stock PHP header methods, when you have more code after the xsend file code, it doesn&#039;t wait until the filesend is done before executing the code... with the first example it waits until the filesend is done, but not with xsend. this is particularly useful if you need to log the fact that the user had a successful download. if the download failed then the code below the download would just not execute, so the user could download again.

what i&#039;m getting at-- is there a way around this with xsendfile? i&#039;m looking for a way to mark that a user has successfully downloaded  a complete file in the database, so they can&#039;t download again. as of now using the same code with the xsendfile modifications, it just always marks the file download as successful because of this.</description>
		<content:encoded><![CDATA[<p>so one of the downfalls i&#8217;ve found with this method is that, unlike with the stock PHP header methods, when you have more code after the xsend file code, it doesn&#8217;t wait until the filesend is done before executing the code&#8230; with the first example it waits until the filesend is done, but not with xsend. this is particularly useful if you need to log the fact that the user had a successful download. if the download failed then the code below the download would just not execute, so the user could download again.</p>
<p>what i&#8217;m getting at&#8211; is there a way around this with xsendfile? i&#8217;m looking for a way to mark that a user has successfully downloaded  a complete file in the database, so they can&#8217;t download again. as of now using the same code with the xsendfile modifications, it just always marks the file download as successful because of this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fran</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-199519</link>
		<dc:creator>Fran</dc:creator>
		<pubDate>Tue, 16 Jun 2009 16:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-199519</guid>
		<description>downloads got stalled at getting file information at least with IE6.0 (not tested with other IE releases)

suggested hack : Cache-Control: must-revalidate doesn&#039;t work, 

any help?

thanks</description>
		<content:encoded><![CDATA[<p>downloads got stalled at getting file information at least with IE6.0 (not tested with other IE releases)</p>
<p>suggested hack : Cache-Control: must-revalidate doesn&#8217;t work, </p>
<p>any help?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-195783</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Sat, 30 May 2009 14:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-195783</guid>
		<description>On http://packages.ubuntu.com you can find which package to install for a specific executable or other file.

http://packages.ubuntu.com/search?searchon=contents&amp;keywords=apxs2&amp;mode=exactfilename&amp;suite=jaunty&amp;arch=any

If you&#039;re running PHP as module, install &#039;apache2-prefork-dev&#039;.</description>
		<content:encoded><![CDATA[<p>On <a href="http://packages.ubuntu.com" rel="nofollow">http://packages.ubuntu.com</a> you can find which package to install for a specific executable or other file.</p>
<p><a href="http://packages.ubuntu.com/search?searchon=contents&#038;keywords=apxs2&#038;mode=exactfilename&#038;suite=jaunty&#038;arch=any" rel="nofollow">http://packages.ubuntu.com/search?searchon=contents&#038;keywords=apxs2&#038;mode=exactfilename&#038;suite=jaunty&#038;arch=any</a></p>
<p>If you&#8217;re running PHP as module, install &#8216;apache2-prefork-dev&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TopFX</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-195338</link>
		<dc:creator>TopFX</dc:creator>
		<pubDate>Fri, 29 May 2009 13:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-195338</guid>
		<description>I&#039;m also trying to get this to work but cannot get it to install on an Ubuntu Plesk server, it fails to compile.

The server is running Apache2, but if you do a locate search it only finds apxs and not apxs2 as pharrington suggests it should.

I really need to get this working so any ideas would really be appreciated</description>
		<content:encoded><![CDATA[<p>I&#8217;m also trying to get this to work but cannot get it to install on an Ubuntu Plesk server, it fails to compile.</p>
<p>The server is running Apache2, but if you do a locate search it only finds apxs and not apxs2 as pharrington suggests it should.</p>
<p>I really need to get this working so any ideas would really be appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pharrington</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-174661</link>
		<dc:creator>pharrington</dc:creator>
		<pubDate>Fri, 01 May 2009 22:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-174661</guid>
		<description>Xorax:

what errors did you get when trying to install? remember that with apache2, the program to compile modules is

apxs2

instead of 

apxs

also, if for whatever reason you need to manually create the config file (eg Ubuntu), the LoadModule line is:

LoadModule xsendfile_module /usr/lib/apache2/modules/mod_xsendfile.so (substitute for the correct path if necessary)</description>
		<content:encoded><![CDATA[<p>Xorax:</p>
<p>what errors did you get when trying to install? remember that with apache2, the program to compile modules is</p>
<p>apxs2</p>
<p>instead of </p>
<p>apxs</p>
<p>also, if for whatever reason you need to manually create the config file (eg Ubuntu), the LoadModule line is:</p>
<p>LoadModule xsendfile_module /usr/lib/apache2/modules/mod_xsendfile.so (substitute for the correct path if necessary)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xorax</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-156418</link>
		<dc:creator>Xorax</dc:creator>
		<pubDate>Thu, 16 Apr 2009 14:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-156418</guid>
		<description>does someone has compiled this mod for apache 2.2 ?

I tried but I have bad errors....</description>
		<content:encoded><![CDATA[<p>does someone has compiled this mod for apache 2.2 ?</p>
<p>I tried but I have bad errors&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-145000</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Tue, 07 Apr 2009 15:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-145000</guid>
		<description>Hi Fujiko,

For a png, use:  header(”Content-type: image/png″);</description>
		<content:encoded><![CDATA[<p>Hi Fujiko,</p>
<p>For a png, use:  header(”Content-type: image/png″);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fujiko Fujio</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-144049</link>
		<dc:creator>Fujiko Fujio</dc:creator>
		<pubDate>Mon, 06 Apr 2009 23:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-144049</guid>
		<description>Is there a way to use xsendfile for displaying inline images? I want to display the image in a browser instead of showing the save as dialog box.</description>
		<content:encoded><![CDATA[<p>Is there a way to use xsendfile for displaying inline images? I want to display the image in a browser instead of showing the save as dialog box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hese</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-123687</link>
		<dc:creator>hese</dc:creator>
		<pubDate>Thu, 05 Mar 2009 20:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-123687</guid>
		<description>Hello,

I have been trying to install and get it working with no succees...

I have test.php:

$file = &quot;video.mp4&quot;;
header(&quot;X-Sendfile: &quot;. $file);
header(&quot;content-type: video/mp4&quot;); 

and .htaccess file in same directory that contains:


XSendFile on



I&#039;m using flowplayer (www.flowplayer.org) to read the mp4 file trough test.php and flowplayer gives an error &quot;streamnotfound&quot;.
If i use readfile($file) in php-script. it works...

apache2ctl -t -D DUMP_MODULES shows that  xsendfile_module is installed.

Do you have any ideas what would be wrong?

I really really appreciate your help!</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I have been trying to install and get it working with no succees&#8230;</p>
<p>I have test.php:</p>
<p>$file = &#8220;video.mp4&#8243;;<br />
header(&#8221;X-Sendfile: &#8220;. $file);<br />
header(&#8221;content-type: video/mp4&#8243;); </p>
<p>and .htaccess file in same directory that contains:</p>
<p>XSendFile on</p>
<p>I&#8217;m using flowplayer (www.flowplayer.org) to read the mp4 file trough test.php and flowplayer gives an error &#8220;streamnotfound&#8221;.<br />
If i use readfile($file) in php-script. it works&#8230;</p>
<p>apache2ctl -t -D DUMP_MODULES shows that  xsendfile_module is installed.</p>
<p>Do you have any ideas what would be wrong?</p>
<p>I really really appreciate your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel</title>
		<link>http://www.jasny.net/articles/how-i-php-x-sendfile/comment-page-1/#comment-18042</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Sat, 08 Mar 2008 16:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/how-i-php-x-sendfile/#comment-18042</guid>
		<description>Hi, would it be too much hassle for you to post some (memory usage, cpu usage and speed) benchmarks? Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi, would it be too much hassle for you to post some (memory usage, cpu usage and speed) benchmarks? Thanks in advance!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
