Re: href and download
| From: | Richard Lynch | Date: | Sun, 12 Aug 2001 21:53:34 +0000 |
| Subject: | Re: href and download | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62349@lists.php.net to get a copy of this message | ||
Use header("Content-type: application/octet-stream");
There are also headers to prompt with the right filename. Search archives
for "Content-disposition"
--
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
----- Original Message -----
From: Heidi Belal <hmbelal@yahoo.com>
Newsgroups: php.general
To: CF-Talk <cf-talk@houseoffusion.com>; Egypt Programmers
<egypt-programmers@yahoogroups.com>; js-jive mailing list
<js-jive@yahoogroups.com>; Php <php-general@lists.php.net>
Sent: Sunday, August 12, 2001 12:51 PM
Subject: href and download
> Hi All,
> I'm trying to create a page where users can download
> files from.
> What i have discovered was that if you have a certain
> file type associated to a certain program and there is
> an href to download that type of file, what will
> happen is that it will automatically open the file
> with the associated program.
> for example:
> if i have mp3's asssociated to winamp...if there is a
> link <a href="song.mp3">download song</a> and i click
> it, it will open my winamp player and start playing
> the song rather than popping up the save as window so
> that i can save the file.
> my questions are:
> Is this discovery correct? and is there a way to
> prevent it from opening the associated program but
> rather popping up the save as window?
> If anyone has any clue please let me know!
> thanks!
>
> =====
> Heidi Belal
> ICQ# 32127109
>
> A bus stops at a bus station.
> A train stops at a train station. On my desk
> I have a work station...
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/