Welcome! Log In Create A New Profile

Advanced

Re: x-accel-redirect и content-type text/html

Dmitry
February 15, 2014 06:02AM
а поставьте сначала

header('Content-type: application/pdf');

а после:
header('Content-Disposition: attachment; filename="'.$filename.'"');

и имя файла в ковычки (у вас там базовое имя, без путей?)




2014-02-15 11:22 GMT+04:00 ruNovel <nginx-forum@nginx.us>:

> Dmitry Wrote:
> -------------------------------------------------------
> > Выключить принудительный тип контента по умолчанию выше?
> > _______________________________________________
> > nginx-ru mailing list
> > nginx-ru@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx-ru
>
>
> От PHP не приходит тип контента. Поэтому и сделал принудительный тип.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?21,247538,247586#msg-247586
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>



--
Dmitry Goryainov
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

x-accel-redirect и content-type text/html

ruNovel February 14, 2014 03:31AM

Re: x-accel-redirect и content-type text/html

Maxim Dounin February 14, 2014 08:28AM

Re: x-accel-redirect и content-type text/html

Dmitry February 14, 2014 08:44AM

Re: x-accel-redirect и content-type text/html

ruNovel February 15, 2014 02:22AM

Re: x-accel-redirect и content-type text/html

Dmitry February 15, 2014 06:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 157
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