Page 1 of 1

PHP Download link

Posted: Tue Dec 09, 2008 3:42 pm
by Tassadduq
i have a web page that is used for music gallery.
i have add a download link to the mp3's files of the music gallery to download it.
when user click on the link it plays the linked mp3 file.
if user want to download the track he right clicks on the link and select save target/link as and then he can saves the file.
i want to know the script for this purpose that if any user click the download button
it will automatically starts the default download manager and start downloading the track.

Re: PHP Download link

Posted: Tue Dec 09, 2008 4:10 pm
by socket1
As I am new here, not quite sure if I should post links to other sites, but here is a way, by sending the special header information

http://elouai.com/force-download.php

Re: PHP Download link

Posted: Thu Dec 11, 2008 9:57 am
by Tassadduq
have anyone easy and better idea than this??
here is a link for sample download link.
if you click on the song title it will automatically starts downloading using your default down loader.

http://www.songs.pk/indian/jumbo.html