note 16993 deleted from function.fpassthru by jimw
| From: | jimw@php.net | Date: | Fri, 14 Dec 2001 19:34:39 +0000 |
| Subject: | note 16993 deleted from function.fpassthru by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22668@lists.php.net to get a copy of this message | ||
For windows users, you'll need to use "rb" in the fopen if you're opening a
binary file (see below)...
<?
header("Content-Type: application/download\n");
header("Content-Disposition: attachment;
filename=\"abc.zip\"");
$fn=fopen("/home/me/private/abc.zip" , "rb");
fpassthru($fn);
?>