[Hpr] php script to redirect url to an ice cast url
ken.fallon at gmail.com
Thu Dec 13 00:21:53 PST 2012
On Thu, 13 Dec 2012 18:12:32 +1100
Krayon <hpr2010 at datapax.com.au> wrote:
> On Wed, 12 Dec 2012 20:43:58 +0100
> Ken Fallon <ken.fallon at gmail.com> wrote:
> > Anyone know a way to redirect a URL to a icecast url ?
> One way I was thinking we could do this was just DNS but it would
> require us all to use the same path.
> As I said the other week in IRC, I thought since we have multiple
> streams, it may be an idea to have a page like this:
> It just scrapes the listener count from the IceCast page.
> Kwisher and I have tested the 2 streams he has for load and I'll do
> the same for mine soon. Having this data, we could do one or more of
> the following:
> 1. Allow users to choose a stream that works for them, basing the
> decision on number of listeners or other factors.
> 2. Using PHP header redirect, it's trivial to automate the load
> distribution to ensure no one server gets more than it can handle.
> Is there any reason we shouldn't do the PHP header redirect method?
Cool - let's get that installed on the bottom of the page
If that's ok with you then can you send me the code please ( and the
license *cough* agplv3 *cough*)
More information about the Hpr