RE: [PHP-WIN] Other download problem.
| From: | Benjamin Hardy | Date: | Mon, 13 Nov 2000 17:19:07 +0000 |
| Subject: | RE: [PHP-WIN] Other download problem. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3812@lists.php.net to get a copy of this message | ||
if you send out a header with a content type that the browser hasn't hear
of, say
header("Content-Type: application/x-elvis-detector-key");
That can fool some browsers into just downloading the file rather than
trying to
display it. Can't remember which ones though.
-----Original Message-----
From: Pablo Vera [mailto:pvz@vercan.com]
Sent: Monday, November 13, 2000 06:24
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Other download problem.
Diverge:
I've done exactly what you described. If the file is Text or
something that the browser can handle, it will try to display it. If
the file is an .exe or a .zip, the browser will initiate a download.
In any case, by clicking the link with the right button, you can
always select something like Save Link as...
Saludos,
Pablo Vera
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Sunday, November 12, 2000, 6:03:19 PM, Diverge wrote:
D> Hi!
D> At the moment i'am working on a project that will contain big archives of
text, graphics and sounds. And something i'm trying to do is basically
making it possible
D> for the users to download the files. With an ordinary <A HREF> the file
will ofcourse be loaded in the browser. Well atleast if it's text of
graphic. Maybe this is the
D> wrong forum for this kind of question but still, anyone know if it's
possible to do such a thing?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net