PHP Download link

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
User avatar
Tassadduq
Forum Commoner
Posts: 60
Joined: Wed Dec 03, 2008 2:53 pm

PHP Download link

Post 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.
socket1
Forum Commoner
Posts: 82
Joined: Mon Dec 08, 2008 7:40 pm
Location: Shokan, New York

Re: PHP Download link

Post 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
User avatar
Tassadduq
Forum Commoner
Posts: 60
Joined: Wed Dec 03, 2008 2:53 pm

Re: PHP Download link

Post 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
Post Reply