note 39570 deleted from function.header by sp
| From: | sp@php.net | Date: | Sun, 03 Jul 2005 13:47:55 +0000 |
| Subject: | note 39570 deleted from function.header by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91355@lists.php.net to get a copy of this message | ||
Note Submitter: php at n0spm dot bradquinn dot com
----
Another solution for getting the browser to use the right filename for saving is to use mod_rewrite
to hide the fact that you are using a script at all.
Either in the httpd.conf or a .htaccess file, include something like the following:
RewriteEngine On
RewriteRule ^/downloads/(.*) /getFile.php?filename=$1 [NE]
mod_rewrite will translate the url, and the browser (and the user) won't know the difference.