Damit gehts, auch ohne Login. Ich parse die Frontpage des Icecast.
PHP Alles anzeigen]*class=\"streamdata\">(.*)<\/td>/isU', $content, &$matches)) { $stream['status'] = 1; $stream['title'] = $matches[1][0]; $stream['description'] = $matches[1][1]; $stream['type'] = $matches[1][2]; $stream['start'] = $matches[1][3]; $stream['bitrate'] = $matches[1][4]; $stream['listeners'] = $matches[1][5]; $stream['peak_listeners'] = $matches[1][6]; $stream['genre'] = $matches[1][7]; $stream['stream_url'] = $matches[1][8]; $stream['current_song'] = $matches[1][9]; } else { $stream['status'] = 0; } //echo $stream['status']; ?>Und nochmal das Beispiel von oben:
Spoiler anzeigen
PHP Alles anzeigen]*class=\"streamdata\">(.*)<\/td>/isU', $content, &$matches)) { $stream['status'] = 1; $stream['title'] = $matches[1][0]; $stream['description'] = $matches[1][1]; $stream['type'] = $matches[1][2]; $stream['start'] = $matches[1][3]; $stream['bitrate'] = $matches[1][4]; $stream['listeners'] = $matches[1][5]; $stream['peak_listeners'] = $matches[1][6]; $stream['genre'] = $matches[1][7]; $stream['stream_url'] = $matches[1][8]; $stream['current_song'] = $matches[1][9]; } else { $stream['status'] = 0; } //echo $stream['status']; ?> Stream ist Online Aktueller Song: Es hören Leute zu Stream ist offline <!--?php } ?>Credits: Orientiert hab ich mich hier dran: http://code.google.com/p/icecast-now-…unk/icecast.php
PS: Änder dein Password
Gruß
florian0
mh... hab genau das ^ kopiert und gespeichert als .php und hochgeladen
http://hydronix.lyronic.de/status.php
steht Offline ![]()