Anybody tell me the php or w.e it is coded in. Just so i can put my radio details into it and it shows the dj name and song playing & listeners.

Anybody tell me the php or w.e it is coded in. Just so i can put my radio details into it and it shows the dj name and song playing & listeners.
Im with Xeodomains.
They dont support PHP.
They dont even have a cpanel just ftp.
The best one is GMTT stats script (regardless of whether or not you have PHP. If you don't you're not going to get very far):
<?php
// ©2004-2005 Daniel Brown http://www.gmtt.co.uk
$scfp = fsockopen("iphere", portbasehere, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
echo'<font=verdana size=2><center>Your radio is <b>offline</b>!</center></font>';
}
if($scsuccs!=1){
fputs($scfp,"GET /admin.cgi?pass=administratorpasswordhere&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
$loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS");
$y=0;
while($loop[$y]!=''){
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE)
$$scphp = urldecode($$scphp);
$y++;
}
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);
$r=1;
while($songatime[$r]!=""){
$t=$r-1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$song[$t] = urldecode($song[$t]);
$dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
$dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$r++;
}
fclose($scfp);
}
if($streamstatus == "1"){
echo'
<center>
<font face=verdana size=2>Your radio is <font color=green><b>online</b>!</font><br><br>
<font face="verdana" size="2"><b>Current DJ: </b>'.$servertitle.'<br>
<b>Listeners: </b>'.$currentlisteners.'<br>
<b>Now Playing: </b> '.$song[0].'<br>
<b>Recent Songs:</b><br>
<b>1.</b> '.$song[1].'<br>
<b>2.</b> '.$song[2].'<br>
<b>3.</b> '.$song[3].'<br>
<b>4.</b> '.$song[4].'<br>
<b>5.</b> '.$song[5].'<br>
</font>';
}
if($streamstatus == "0")
{
echo'<font face=verdana size=2><center>Your radio is <font color=green><b>online</b></font>. But nobody is DJing!</center></font>';
}
?>
Last edited by HotelUser; 11-11-2008 at 08:46 PM.
I'm not crazy, ask my toaster.
You should highly consider moving web hosts if they don't support PHP.
SAWHosting.com are quite cheap, a good host, and support PHP. there your best bet i reckon.
o.o
You must have searched my name, and picked out post's you would like to correct me on.
He did not request a free host, i suggested one where he could get a very good deal.
if your looking for a free host 000webhost is the way foward.
000Webhost provide Free Web Hosting with PHP,MYSQL and cPanel, no ads
o.o
You think so much of yourself, don't you?He didn't request for any hosts at all. You shouldn't correct people when you're wrong.Now you're giving him the address to a free host, when you told me he didn't ask for a free host..idiot..if your looking for a free host 000webhost is the way foward.
000Webhost provide Free Web Hosting with PHP,MYSQL and cPanel, no ads
I'm not crazy, ask my toaster.
I was posting the URL of the freehost for you, as you were unable to do so yourself, and left him wondering...
o.o
Want to hide these adverts? Register an account for free!