How to forcefully download audio file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nagendra
Forum Newbie
Posts: 1
Joined: Wed Aug 24, 2005 9:08 am

How to forcefully download audio file

Post by nagendra »

Hi,
I have a site for music and I want to give two options to the users
1. Listen song
2.Download
Listen song works fine ,Problem is with providing forcefully download of audio file.
File downloaded but downloaded file doesn't play in the media player

Media player gives error:
Windows Media Player cannot play the file. The file is either corrupt or the Player does not support the format you are trying to play.
please give some suggestions

waiting positively for reply.

thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

post your code.
Post Reply