Re: Protecting Streaming Audio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



use readfile to read the file and output it to the browser. I don't know the specific ones, but you'll need to also send headers that declare the file as streaming media.


On Nov 4, 2006, at 10:08 PM, Adam Gittins wrote:

Thanks. :)
That's an idea... Few questions. Grab the file and sendt it to someone, that would work with a download but would it work with a streaming audio file, because that has to be opened in realOne player or windows media player? I was searching PHP.net documentation for a way of grabbing a file - what
function would be used?? Sorry about the silly questions..

Sincerely,
Adam




On 11/4/06, Ed Lazor <edlazor@xxxxxxxxx> wrote:

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



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux