well currently I have a script which gathers mp3s. All the songs are hosted on external sites.
A user clicking the mp3 link will result in the mp3 playing in the browser in the users default audio player (quicktime etc)
I’m just wondering what code I could use (PHP) to have the mp3 open as a download prompt instead of playing. This would be easy although the catch is that it can’t be processed through the server (aka can’t use bandwidth)
can it be done?
Thanks
At first glance this appeared to be a duplicate of How to implement Content-Disposition: attachment?.
Then I saw the “3rd party sites” proviso.
There is no way to override the HTTP headers sent by a remote site when sending the client there. What you want is not achievable.