Hi, 2012/5/11 Simon Schick <simonsimc...@googlemail.com>
> Hi, Everyone > > FYI: If you just want to check something before serving a file to the > client, you can also use something called xsendfile. > > Apache: https://tn123.org/mod_xsendfile/ > lighttpd: It's build in :) > nginx: http://wiki.nginx.org/XSendfile It's named "X-Accel" and build in too (as long as it's not explicitly disabled) http://wiki.nginx.org/Modules http://wiki.nginx.org/X-accel > > > Idea: > Do what you're doing in your php-script and add the header > "X-Sendfile: $yourFile" (nginx is using another header). > This header will trigger the plugin and the webserver will serve the > file instead of your php-process. > > I personally use it on my webserver and it works quite fine. Debian > has a compiled package called libapache2-mod-xsendfile in version 0.9 > > Bye > Simon > > On Fri, May 4, 2012 at 2:33 PM, Paul Reinheimer <preinhei...@gmail.com> > wrote: > > > > Hi Everyone > > > > >> So, I think we're back to "urban legend" territory. > > > > I've updated the documentation for readfile() to help send more people > > down the path of checking for output buffering, and disabling that > > rather than contriving loops with fread(). > > > > http://docs.php.net/readfile > > > > > > > > paul > > > > > > -- > > Paul Reinheimer > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >