Re: file downloading problem
| From: | Jeff Lacy | Date: | Thu, 19 Oct 2000 17:21:19 +0000 |
| Subject: | Re: file downloading problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21208@lists.php.net to get a copy of this message | ||
Maybe Content-Type would work better. Look at
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
and
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17.
"Jerry" <bonnej@prairie.lakes.com> wrote in message
news:Pine.LNX.4.20.0010171333200.26910-100000@prairie.lakes.com...
> I hear there are some pretty sharp people on this list that could probably
> help me out, so here goes.
>
> I'm trying to download a file that resides outside the web
> directory to a client.
>
> When the client initiates a download it incorrectly identifies the file by
> the name of the php script that is serving the file, this happens mostly
> on the macintosh, i.e. when someone trys to download say a mpg video,
> netscape will ask to save the file as "download.php" instead of
> "blah.mpg". I use this header to suggest a filename :
>
> Header("Content-Disposition: filename=$file_name");
>
> From what I understand, Content-Disposition isnt technically part of the
> http protocol, does that mean that some browsers like netscape might
> ignore it? Do browsers grab the filename from the end of uri? if so is
> there a way I can fake the browser out? any help would be greatly
> appreciated, ive been banging my head against the wall for a while on
> this one.
>
> Jerry Bonner
> Systems Analyst / Web Development
> [bonnej@prairie.lakes.com]
> ---------------------------------
> Prairie Lakes Internet
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>