X-Sendfile Error

TFEX

New Member
I am trying to send files by using X-Sendfile directive in lighttpd.My php code is;\[code\]header("Content-Type: application/force-download");header( "Content-Disposition: attachment; filename=" . 's.php');header("Content-Length: ". filesize("/home/web/domain/htdocs/download.php"));header( "X-Sendfile: /home/web/domain/htdocs/download.php");\[/code\](I am sending download.php file just for testing purpose)However, I get blank file no matter what I try. If I change the filename, I get;2010-08-30 18:01:14: (mod_fastcgi.c.2587) send-file error: couldn't get stat_cache entry for: /home/web/domain/htdocs/downloa1d.phpSo, it is working, but when I send the correct file it does not give any error in the logs and the browser downloads an empty file.What could be wrong? What should I do?Thanks in advance,
 
Back
Top