You are here: how do I force mp3s to download, rather than play? « PHP Programming Language « IT news, forums, messages
how do I force mp3s to download, rather than play?

Posted by lawrence k on 03/14/07 14:56

I want files like this to download, rather than play in people's
browsers:

http://www.monkeyclaus.org/media/audio/abel_okugawa/816_mix/trumpethed.mp3

Can I fix this with a directive in an .htaccess file? If not, suppose
I serve it through a php file that opens the file and reads and
streams it to the requesting browser. Is there some header I could
sent with the header() function that would force a download? Would I
be breaking the internets if I sent a long an unknown mime-type just
to force a download?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация