Hi Karl --

You can store the file contents outside of the web tree and use PHP to "read" 
the contents.  This allows you to place access control restrictions in the PHP 

This post talks about doing something similar with images.  Obviously, if you 
have a music track... you'll need to adjust the mime type accordingly.


Good luck.


-----Original Message-----
From: Karl DeSaulniers [mailto:k...@designdrumm.com] 
Sent: Friday, May 28, 2010 1:39 PM
To: php-db@lists.php.net
Subject: [PHP-DB] File Downloads

How can I go about restricting the number of downloads of a file on  
my server?
For Eg: if I want a music track to only be able to be downloaded by  
150 people and thats it.. ever,
how can I go about doing this?

Much obliged,

Karl DeSaulniers
Design Drumm

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to