News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jani Hartikainen's Blog:
Sending files better Apache mod_xsendfile and PHP
March 06, 2009 @ 12:57:34

Jani Hartikainen has a suggestions of a way to "send files better" in his latest post by using the mod_xsendfile module for Apache and a bit of PHP.

I have previously written a quick post on making files downloadable through PHP scripts. 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 Tom Graham.

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).

3 comments voice your opinion now!
send file better module apache xsendfile example


ThinkPHP Blog:
Make the download of large files with PHP (and lighty) very easy
August 24, 2006 @ 07:45:43

In this new post on the ThinkPHP blog today, there's a look at combining the power of PHP with a feature of the lightthpd web server to make downloading large files a simple task.

Some days ago I stumbled upon an old entry of Jan in lighty's life, called "X-Sendfile". 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).

He even gives an example 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.

2 comments voice your opinion now!
lightthpd web server large file download configuration xsendfile lightthpd web server large file download configuration xsendfile



Community Events





Don't see your event here?
Let us know!


package tips symfony release podcast framework laravel zendserver library install update series community list api opinion interview language deployment introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework