|
|
|
|
#1 |
|
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? |
|
|
|
|
|
#2 |
|
Moderator
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.
|
|
|
|
|
|
#3 |
|
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... |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|