Old 5th October 2005, 22:24   #1
Immortal Warrio
Junior Member
 
Join Date: Oct 2005
Posts: 3
Radio stats with no-ip

I want to know how can I show the Radio Stats in my home page. I found many topics about how make it, but i'm using a no-ip adress to redirect my ip (is a Dynamic one).

Anyone can help me?
Immortal Warrio is offline   Reply With Quote
Old 5th October 2005, 22:27   #2
dotme
Moderator
 
dotme's Avatar
 
Join Date: Feb 2005
Location: USA
Posts: 4,024
Instead of the IP address, edit the script you're using to use the Hostname (no-ip name) instead of the IP address for your DNAS.
dotme is offline   Reply With Quote
Old 6th October 2005, 15:54   #3
Immortal Warrio
Junior Member
 
Join Date: Oct 2005
Posts: 3
Ok, but how can i do it?

I´m trying to use the Shoutcast Stats. I found it here in the forum.

In the file config_radio.php, i need to put my ip and my port. But to use no-ip, i have to use only the adress. I can´t use the Hostname (no-ip name) instead of the IP address, cause this code will put my port after my adress
(myadress.no-ip.info:8000), and it will not works.

The config_radio.php file:
<?php

$scdef = "your message";
$scip = "YOUR IP";
$scport = "8000";
$scpass = "your password";


?>


The lines in radio_stats.php file that calls the info of config_radio.php:
include('config_radio.php');

$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
echo''.$scdef.' is Offline';
}
if($scsuccs!=1){
fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}


I don´t know php, i just follow the variables...
Immortal Warrio is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump