Welcome! Log In Create A New Profile

Advanced

Re: Content Truncating

April 07, 2009 08:15PM
On Tue, Apr 7, 2009 at 4:56 PM, michael <nginx-forum@nginx.us> wrote:
> When will I not need to calculate Content-Length? When using X-Accel or when using PHP readfile()...? With X-Accel, yes, I should not need to calculate the Content-Length... What about when/if using readfile()

when you use x-accel.

when you use readfile i would expect you have to provide -all- the headers. :)

Right now this is all I have for mine and it works like a charm:

header("Content-Disposition: attachment;
filename=\"".urldecode(basename($file))."\";");
header("Content-Type: application/force-download");
header("X-Accel-Redirect: $file_uri");
Subject Author Posted

Content Truncating

michael April 07, 2009 03:54PM

Re: Content Truncating

michael April 07, 2009 03:56PM

Re: Content Truncating

mike April 07, 2009 05:16PM

Re: Content Truncating

michael April 07, 2009 06:32PM

Re: Content Truncating

mike April 07, 2009 07:24PM

Re: Content Truncating

michael April 07, 2009 07:56PM

Re: Content Truncating

mike April 07, 2009 08:15PM

Re: Content Truncating

Maxim Dounin April 07, 2009 08:27PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready