Re: Protecting Streaming Audio

From: Date: Sat, 04 Nov 2006 15:26:16 +0000
Subject: Re: Protecting Streaming Audio
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-244206@lists.php.net to get a copy of this message
You put the data in a directory outside of the webspace and use PHP to grab the file and send it to someone. That way you're able to control access to the file. By webspace, I'm referring to the directories outside of the ones used to store and serve your webpages. This directory structure would serve as an example for where you store your webpages and where you store your data separately from the webpages: /www/www.somesite.com/htdocs /www/www.somesite.com/data On Nov 3, 2006, at 9:29 PM, Adam Gittins wrote:
Dear List,
    I have had a question that has been bugging me for a while now. Say
that I need to have a members website. Which I want to protect streaming
audio (Real, or Windows Media), now all the pages I can protect with a MYSQL
DB and PHP. But when it comes to protecting a url of a file or audio feed it
becomes tricky. What is the procedure? Would I have to use the htaccess
file? But then when I open a realaudio file it will ask for a username and
passworld again.. How does one protect an url - or do I have to copy the file to a temp dir and then after a set time delete it? Help, there must be a way.. Thanks for any ideas.. Sincerely, Adam


« previous php.general (#244206) next »