Music File Download Restriction

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Wed Jun 22, 2005 4:55 am

possibly you will have to use .htaccess (restrincting access to the file via browser)
and when user clicks on download, read the file with php and force-download it :)
the link might have to be something like donwload.php?id=2332556

where id corresponds to that file... or maybe download.php?file=test.mp3

its up to you to decide..
Best Regards,
Alexej Kubarev
Zend Certified Engineer
Image Image

Post Reply