note 71754 deleted from function.fopen by nlopess
| From: | nlopess@php.net | Date: | Sun, 17 Dec 2006 20:09:56 +0000 |
| Subject: | note 71754 deleted from function.fopen by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120708@lists.php.net to get a copy of this message | ||
Note Submitter: rl
----
how get file over SSL :)
Header("Expires: ".GMDate("D, d M Y H:i:00")." GMT");
header ("Cache-Control: private"); // HTTP/1.1 header('Content-Type:
application/octet-stream');
header("Content-disposition: attachment; filename=\"$FileName\"");
header("Content-description: $FileName");
header("Pragma: public");
flush();
//Pred hlaviÄky o type, mene a veľkosti súboru je nutné vložiÅ¥ hlaviÄku
header("Cache-control: private"); a nakoniec hlaviÄku header("Pragma:
public");. Po tomto fungoval download súboru (aj jeho otvorenie priamo z downloadu) bez
problémov.
fopen $FileName ...