Re: Download file
| From: | Richard Lynch | Date: | Wed, 01 Aug 2001 20:33:27 +0000 |
| Subject: | Re: Download file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60808@lists.php.net to get a copy of this message | ||
> header ("Content-Disposition: attachment; filename=download.tar");
>
> readfile($filename);
> ===================end code snippet=========
>
> What I need to do, is specify the default directory for this file to be
> saved to. Does anyone know how to do this?
WILD GUESS:
Some browsers might let you use a full pathname in the "filename=" bit and
prompt with that pathname, if the user even has such a pathname in the first
place...
If not, there probably isn't any way to do that.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm