<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 19 May 2013 16:15:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Sending files better: Apache mod_xsendfile and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12083</guid>
      <link>http://www.phpdeveloper.org/news/12083</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> <a href="http://codeutopia.net/blog/2009/03/06/sending-files-better-apache-mod_xsendfile-and-php/">has a suggestions</a> of a way to "send files better" in his latest post by using the <a href="http://tn123.ath.cx/mod_xsendfile/">mod_xsendfile</a> module for Apache and a bit of PHP.
</p>
<blockquote>
I have previously written a quick post on <a href="http://codeutopia.net/blog/2008/10/10/php-tip-how-to-make-a-file-downloadable-through-your-script/">making files downloadable through PHP scripts</a>. The example in the post reads the file itself into a variable, and as pointed out in the comments, it's not necessarily a very good idea especially if you deal with large files. Recently at work, we needed a reliable way to send files to users' browser, and I decided to take a look at mod_xsendfile, as suggested by <a href="http://www.noginn.com/">Tom Graham</a>.
</blockquote>
<p>
He starts with some of the benefits of using the xsendfile method over other, more traditional ways. Moving on, he gets to the good stuff - download, installation and a code example of how to use the module (via a X-Sendfile header).
</p>]]></description>
      <pubDate>Fri, 06 Mar 2009 12:57:34 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ThinkPHP Blog: Make the download of large files with PHP (and lighty) very easy]]></title>
      <guid>http://www.phpdeveloper.org/news/6126</guid>
      <link>http://www.phpdeveloper.org/news/6126</link>
      <description><![CDATA[<p>
In <a href="http://blog.thinkphp.de/archives/136-Make-the-download-of-large-files-with-PHP-and-lighty-very-easy.html">this new post</a> on the ThinkPHP blog today, there's a look at combining the power of PHP with a feature of the <a href="http://www.lighttpd.net/">lightthpd web server</a> to make downloading large files a simple task.
</p>
<blockquote>
Some days ago I stumbled upon an old entry of Jan in <a href="http://blog.lighttpd.net/">lighty's life</a>, called "<a href="http://blog.lighttpd.net/articles/2006/07/02/x-sendfile">X-Sendfile</a>". There he explains how to speed up the delivery of (large) files with lighttpd instead of PHP (YES, lighttpd is very fast - for one customer we created an ImageServer with pure lighty that replaced a 4-server-cluster with Apache and now has 1 server with lighttpd (which is boring around at low load). The box makes 180 Mio. requests per month).
</blockquote>
<p>
He <a href="http://blog.thinkphp.de/archives/136-Make-the-download-of-large-files-with-PHP-and-lighty-very-easy.html">even gives an example</a> of the functionality, showing how a combination of an entry in the web server's config coupled with a simple PHP script can easily send out a large file to anyone nice and zippy.
</p>]]></description>
      <pubDate>Thu, 24 Aug 2006 07:45:43 -0500</pubDate>
    </item>
  </channel>
</rss>
