Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   Radio stats with no-ip (http://forums.winamp.com/showthread.php?t=227740)

Immortal Warrio 5th October 2005 22:24

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?

dotme 5th October 2005 22:27

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.

Immortal Warrio 6th October 2005 15:54

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...


All times are GMT. The time now is 13:42.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.