How to define a path of download file in header?
| From: | Ruo Zhang | Date: | Tue, 18 Mar 2003 23:45:43 +0000 |
| Subject: | How to define a path of download file in header? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140223@lists.php.net to get a copy of this message | ||
Hi,
I use the following headers to force open a download dialog box. However, my download files are
located in other directories/subdirectories. How can I specify a download path in the header? The
'Content-Location' header does not work in this case. Can someone please help?
header("Content-type: application/octet-stream");
header("Content-Length: $filelength");
header("Content-Disposition: attachment; filename=$fname;");
Thanks.
Rho