Restreaming with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Synn
Forum Newbie
Posts: 1
Joined: Thu Oct 15, 2009 12:26 pm

Restreaming with php

Post 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.
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: Restreaming with php

Post 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.
Post Reply