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

From: Date: Sat, 06 Sep 2003 15:01:05 +0000
Subject: Re: PHP5 - How Do I Let Users Download Music Files?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-195982@lists.php.net to get a copy of this message
Daniel Schierbeck wrote:
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 make that "audio/mpeg" :)
-- Daniel Schierbeck

« previous php.general (#195982) next »