Re: PHP5 - How Do I Let Users Download Music Files?

From: Date: Sat, 06 Sep 2003 14:20:37 +0000
Subject: Re: PHP5 - How Do I Let Users Download Music Files?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195979@lists.php.net to get a copy of this message
php-list@xenonsolutions.com wrote:
Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as secure as possible. I'm going to place the files outside the web directory and use authentication to approve that the user can download some particular song. I didn't know you could do a forced download. I will definitely have to try that. Thanks again. Nilaab
It seems that you can just replace the content-type of my previous example with: audio/mpegurl That should force a stream (haven't tested it though). Good luck -- Daniel Schierbeck

« previous php.general (#195979) next »