Use header("Content-type: application/octet-stream");
There are also headers to prompt with the right filename.  Search archives
for "Content-disposition"

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Newsgroups: php.general
To: CF-Talk <[EMAIL PROTECTED]>; Egypt Programmers
<[EMAIL PROTECTED]>; js-jive mailing list
<[EMAIL PROTECTED]>; Php <[EMAIL PROTECTED]>
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/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to