well I spoke with them and they said all their ports run off of 80 so i dont know what to say .. but it isnt just the ports i am using.. i went through like 20 diffrent Ip servers and stations and well i havent had a single one work yet.. Below is the full php that i have so if i am wrong with anything please let me know...
Code:
<?php
/* -----------------2/22/2005 6:23pm-----------------
Shoutcast Status Lite 1.0
This is a Nice hack to add Shoutcast Status on your VB3.x Forum Home.
Hope it helps !!! Zack @ http://www.gzhq.net
(this hack does not need a password to pull stream information.)
CREDITS:
GeZuS P - for giving me a leg up on some code.
-------------------------------------------------------*/
//Configuration
$scdef = "idobi Radio"; // Default station name
$scip = "208.53.158.213"; // ip shoutcast server
$scport = "80"; // port of shoutcast server
//End configuration
// Shoutcast Server Stats
// Parses shoutcasts xml to make an effective stats thing for any website
$scfp = @fsockopen($scip, $scport, &$errno, &$errstr, 1);
if(!$scfp) {
eval('$scast = "' . fetch_template('forumhome_shoutcast_off') . '";');
}else{
if($scsuccs!=1){
fputs($scfp,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
}
//define all the variables to get (delte any ones you don't want)
$page = ereg_replace(".*<body>", "", $page); //extract data
$page = ereg_replace("</body>.*", ",", $page); //extract data
$numbers = explode(",",$page); //extract data
$currentlisteners=$numbers[0];
$streamstatus=$numbers[1];
$peaklisteners=$numbers[2];
$maxlisteners=$numbers[3];
$currentlisteners=$numbers[4];
$bitrate=$numbers[5];
$song[0]=$numbers[6];
}
//end song info
if($scfp) {
fclose($scfp);
}
$listenlink = 'http://'.$scip.':'.$scport.'/listen.pls'; //make link to stream
//display stats
if($scfp) {
if($streamstatus == "1"){
eval('$scast = "' . fetch_template('forumhome_shoutcast') . '";');
} else {
eval('$scast = "' . fetch_template('forumhome_shoutcast_off') . '";');
}
}
?>
thanks again
i mean you can see on my site under forums that it stays turned off
www.rebelsofchaos.net