[icecast] Hello everyone, here is some php code.

Mr. Stauf stauf at freshcheese.net
Tue Dec 23 20:21:17 PST 2003


Okay,
So remember that question I had last week about taking a bunch of relay servers
and greping the status2.xsl file for the number of listeners?  I coded it.  I
have to apologize right now, as its krufty, nasty, braindead code.  But it
works, and I'm rather proud that after being up as long as I have been up
and drinking as much coffee, it works.  It should be attached to this e-mail.

I would also like to thank Michael Smith, Karl Heyes, Kerry Cox, and a host of
others for helping me out with my icecast2 setup, and for writing documentation
and code.  I hope the best of all y'all this holiday season.  Now, I am carefully going to make sure to attach my code with Mutt, and go to bed.

P.s. If my code sucks, if you have written better code, if you have questions on
the code, or have any other feedback, I would love it hear it.

--Stauf 
| http://radio.freshcheese.net "Background noise for the masses."
|----

-------------- next part --------------
PD9waHAKCmZ1bmN0aW9uIHJldHVybl9saXN0ZW5lcnMoJG1vdW50X3BvaW50X25hbWUpCnsJCgoJ
Ly8gVGhpcyBmdW5jdGlvbiB0YWtlcyB0aGUgbW91bnQgcG9pbnQgbmFtZSBhcyBhbiBhcmd1ZW1l
bnQsCgkvLyB3aGljaCBiZWNhdXNlIHdlIGFyZSBsYXp5IHdlIHRha2UgaW4gdGhlIGZvcm1hdCBm
b28ub2dnCgkvLyBpbnN0ZWFkIG9mIC9mb28ub2dnLgoJLy8gV2l0aCB0aGlzIGFyZ3VtZW50IHdl
IGNoZWNrIHRoZSByZW1vdGUgcmVsYXlzIGZvcgoJLy8gdGhlIGFtb3VudCBvZiBsaXN0ZW5lcnMu
ICBJdCB0aGVuIHRvdGFscyB1cCB0aGUgbnVtYmVyIG9mCgkvLyBsaXN0ZW5lcnMsIGFuZCByZXR1
cm5zIGl0IGFzIGEgdmFsdWUuCgoJLy8gRmlyc3Qgd2Ugc2V0IHVwIG91ciB2YXJpYWJsZXMgdG8g
aW5pdGlhbCB2YWx1ZXMsIGFuZCB0aGVuCgkvLyBhc3NpZ24gb3VyIHZhbHVlcyBvZiB0aGUgcGF0
aCB0byBtb3VudHBvaW50cyBvZm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zICR2YWx1ZSkKCXsKCQlpZigkZmlsZV9jb250ZW50PWZpbGVfZ2V0X2NvbnRlbnRz
KCR2YWx1ZSkpCgkJewoJCQkkc3RhcnRfcG9zID0gc3RycG9zKCRmaWxlX2NvbnRlbnQsICRtb3Vu
dF9wb2ludF9uYW1lKSArICRsZW5ndGhfb2ZfbW91bnRwb2ludCArIDM7CgkJCSR0ZXN0X3Bvcz1z
dWJzdHIoJGZpbGVfY29udGVudCwgJHN0YXJ0X3BvcywgMSk7CQoJCQoJCQlpZihpc19udW1lcmlj
KCR0ZXN0X3BvcykpCgkJCXsKCQkJCSRudW1iZXJfb2ZfbGlzdGVuZXJzICs9IChpbnQpICR0ZXN0
X3BvczsKCQkJfQoJCX0JCgl9CgkKCS8vIE5vdyB3ZSByZXR1cm4gYSBzaW1wbGUgaW50ZWdlciB5
b3UgY2FuIGRvIHdpdGggd2hhdCB5b3UgcGxlYXNlLgoJcmV0dXJuKCRudW1iZXJfb2ZfbGlzdGVu
ZXJzKTsKfQo/PgoK


--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.


More information about the Icecast mailing list