MacSlon
Benutzer
Hallo, ich hoffe mir kann jemand von euch helfen.
Ich benutze zu Ansicht des laufenden Titels auf meiner Webseite für den alten Stream zum Beispiel folgendes Script:
http://www.macslons-irish-pub-radio.com/nowplaying.php
<html>
<body bgcolor="#0D2A0C" text="#FFFF00">
<meta http-equiv="Refresh" content="30" />
<div align="center">
<?
$open = fsockopen("193.111.140.238","9024");
if ($open) {
fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
$read = fread($open,1000);
$text = explode("content-type:text/html",$read);
$text = explode(",",$text[1]);
} else { $er="Connection Refused!"; }
?>
</div>
<div align="left">
<?
if ($text[1]==1) { $state = "Up"; } else { $state = "Down"; }
if ($er) { echo $er; exit; }
echo "<font face=verdana size=3>
<u><b>Gerade läuft:</u></b> <br>
$text[6] <br><br>
*Wir haben $text[0] Zuhörer.* <br>
</font>";?>
</body>
</html>
Mein neuer Stream ist Shoutcast 2 (46.235.26.22:12300) bei dem dieses Script nicht mehr arbeitet. Ich selbst vermute dass das was mit der Stream ID zu tun hat. Inwieweit muss ich diese ID und vor allem wie im Script angeben?
Das Gleiche Problem habe ich mit der Darstellung der zuletzt gespielten Songs, für die ich samt Player folgendes Script benutze:
http://www.macslons-irish-pub-radio.com/appplayer/
<?php
/* Streamers Webplayer 1.057
**
** Developer: djcrackhome [Sebastian Graebner] [PHP/HTML/Idea]
** Thanks to 'Raimund Barendt' [JQuery/JSON] & 'Rico Reinheckel' [Idea]
**
** License:
**
** Creative Commons Attribution-ShareAlike 3.0 Unported License
** This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
** To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or
** send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
**
** URL: http://www.streamerspanel.com
** SUPPORT: http://support.streamerspanel.com
** MAIL: info@streamerspanel.com
** PAYPAL: info@streamerspanel.com
**
*************************************************************************************************
** Filename: ./includes/streams/stream1.inc.php | Stream Example Configuration
*/
// Required values which will needed to be changed!
$shoutcast_ip = '193.111.140.238';
$shoutcast_port = '9024';
$shoutcast_admin_pass = 'password';
// Optional Data
$page_title = "MacSlon's Irish Pub Radio";
$page_volume = '50'; // In percent
$page_auto = 'true'; // true/false
$page_logo = "";
// If Facebook/Twitter should be added please keep
// enabled and provide your stream image for FB.
$social_enable = TRUE; // TRUE/FALSE
$facebook_image = ""; // A full url, like http://www.domain.com/images/logo.png
?>
Kennt sich damit jemand aus?
Ich benutze zu Ansicht des laufenden Titels auf meiner Webseite für den alten Stream zum Beispiel folgendes Script:
http://www.macslons-irish-pub-radio.com/nowplaying.php
<html>
<body bgcolor="#0D2A0C" text="#FFFF00">
<meta http-equiv="Refresh" content="30" />
<div align="center">
<?
$open = fsockopen("193.111.140.238","9024");
if ($open) {
fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
$read = fread($open,1000);
$text = explode("content-type:text/html",$read);
$text = explode(",",$text[1]);
} else { $er="Connection Refused!"; }
?>
</div>
<div align="left">
<?
if ($text[1]==1) { $state = "Up"; } else { $state = "Down"; }
if ($er) { echo $er; exit; }
echo "<font face=verdana size=3>
<u><b>Gerade läuft:</u></b> <br>
$text[6] <br><br>
*Wir haben $text[0] Zuhörer.* <br>
</font>";?>
</body>
</html>
Mein neuer Stream ist Shoutcast 2 (46.235.26.22:12300) bei dem dieses Script nicht mehr arbeitet. Ich selbst vermute dass das was mit der Stream ID zu tun hat. Inwieweit muss ich diese ID und vor allem wie im Script angeben?
Das Gleiche Problem habe ich mit der Darstellung der zuletzt gespielten Songs, für die ich samt Player folgendes Script benutze:
http://www.macslons-irish-pub-radio.com/appplayer/
<?php
/* Streamers Webplayer 1.057
**
** Developer: djcrackhome [Sebastian Graebner] [PHP/HTML/Idea]
** Thanks to 'Raimund Barendt' [JQuery/JSON] & 'Rico Reinheckel' [Idea]
**
** License:
**
** Creative Commons Attribution-ShareAlike 3.0 Unported License
** This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
** To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or
** send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
**
** URL: http://www.streamerspanel.com
** SUPPORT: http://support.streamerspanel.com
** MAIL: info@streamerspanel.com
** PAYPAL: info@streamerspanel.com
**
*************************************************************************************************
** Filename: ./includes/streams/stream1.inc.php | Stream Example Configuration
*/
// Required values which will needed to be changed!
$shoutcast_ip = '193.111.140.238';
$shoutcast_port = '9024';
$shoutcast_admin_pass = 'password';
// Optional Data
$page_title = "MacSlon's Irish Pub Radio";
$page_volume = '50'; // In percent
$page_auto = 'true'; // true/false
$page_logo = "";
// If Facebook/Twitter should be added please keep
// enabled and provide your stream image for FB.
$social_enable = TRUE; // TRUE/FALSE
$facebook_image = ""; // A full url, like http://www.domain.com/images/logo.png
?>
Kennt sich damit jemand aus?