If you know how lighttpd (www.lighttpd.net) working you must know that in lighttpd exist "X-LIGHTTPD-send-file" (http://redmine.lighttpd.net/projects/1/wiki/X-LIGHTTPD-send-file) function to send large files with lighttpd to users instead of using
PHP (I must use
php to give access to users and also to track downloads and also to stop hotlinking etc.)...
All of this working great, but I have one problem, I need to count 100% downloaded files by users and only way how I can do that is with
PHP script but if I use X-LIGHTTPD-send-file lighttpd stop my current
php script and start file download as static file and what I need is to add function to lighttpd that will back lighttpd to
PHP script after file download 100% finished (this can be some other
php file) and I`ll execute small
php/
mysql code to count that file downloads....
In this moment I using lighttpd 1.5 (http://www.lighttpd.net/download/lighttpd-1.5.0snap-r2533.tar.gz) and I need patch to enable this function...
Look like this function exist in nginx and they call it post_action, but I don`t know is that what I need and if that what I need I need that in lighttpd...
I hope that somebody can work on this...
NOTE: I know that I can download files with
PHP and on that way count file download but that using more cpu and ram and that is not good, that is why I need file download with lighttpd like and static file...
Thanks.