Page 1 of 1

Restreaming with php

Posted: Thu Oct 15, 2009 12:30 pm
by Synn
Is it possible to use php to listen to a music stream from one server and distribute it to visitors on the other server?

I am shoutcasting music using winamp on my home pc. I want to stream this music to a php script on a webhost so they take the load of the all the people listening and I only have 1 listener (the webhost) on my pc.

Also. any guidelines on how this would be done?

Remember its a webhost, I can't use any other server side stuff.

Re: Restreaming with php

Posted: Thu Oct 15, 2009 9:50 pm
by Eric!
I've never tried restreaming, but perhaps you could modify this php streaming script to pull data from a remote host instead of your webserved directory. http://manas.tungare.name/software/whispercast/ I know this isn't exactly what you're looking for but it's a good skeleton to start with assuming know know your way around php.

Your webhost will have to allow server side scripting (i.e. php). At least if I understand your configuration correctly.