Shoutcast Stats PHP Parser

At DRS 2006 we also offer high quality streaming at the lowest prices. We also guide you through step by step while setting up your own internet radio station. After debuting your broadcast on the World Wide Web, join us here to talk about streaming.

Shoutcast Stats PHP Parser

Postby Loonix » Sun Jun 11, 2006 6:21 pm

Ok. I searched for this topic with no success so here is my post.

For years now with radiostreamer I have succesfully used a php script that parses the XML output of shoutcast D.N.A.S stats (GMTT Shoutcast Stats 2.3) to show stream status, stream title and current song on a webpage. Recently this script fails and returns a "server offline" message when stream and server are both active.

I noticed that the shoutcast stas on radiostreamer now show the letter U before the tittle. Is this a version change? Did something changed in the way the stats are displayed? Could this be the reason why my script is not working? FSOCK function IS enabled in my hosting plan.

This is how the script accesses XML info...

Code: Select all
$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");
 while(!feof($scfp)) {
  $page .= fgets($scfp, 1000);
 }



Why doesn't radiostreamer offer a simple solution like streamsolutions.co.uk

( http://www.streamsolutions.co.uk/index.php?page=scripts) for displaying simple stream stats like stream tittle and current song?

Please advice
Loonix
New Broadcaster
New Broadcaster
 
Posts: 4
Joined: Sun Jun 11, 2006 5:50 pm

Re: Shoutcast Stats PHP Parser

Postby Dave B » Sun Jun 11, 2006 9:37 pm

Loonix wrote:I noticed that the shoutcast stas on radiostreamer now show the letter U before the tittle. Is this a version change? Did something changed in the way the stats are displayed? Could this be the reason why my script is not working? FSOCK function IS enabled in my hosting plan.

There have been no version changes that I'm aware of. Have you made any changes to the title streaming parameters in your encoder of via the customer interface? That may explain the extraneous letter being displayed.
Dave
Soft ' N Easy Net Radio

Tel: 1-888-256-0242
"Magic Of The 80's"
Saturdays 8PM EST and Sundays 12PM EST.
Dave B
Super Broadcaster
Super Broadcaster
 
Posts: 484
Joined: Mon May 12, 2003 5:46 pm
Location: Connecticut, USA

Postby masa » Mon Jun 12, 2006 8:13 am

Dave has a good point. Also make sure your password matches. There is no reason why viewxml shouldn't work, but it does need the correct password. If you use the Broadcast AND Admin Passwords, make sure you're specifying the ADMIN password.
masa
Owner/Program Director;
Japan-A-Radio
http://www.japanaradio.com/
masa
New Broadcaster
New Broadcaster
 
Posts: 29
Joined: Wed Apr 23, 2003 2:07 am
Location: Denver, Colorado, USA

Postby Loonix » Mon Jun 12, 2006 2:46 pm

Thank you for your answers...

I meant the title of the shoutcast server...

It now says "U Shoutcas D.N.A.S. Status"

If I am here it is because I've eliminated the obvious like checking for the correct password, address and port info.

Is anyone from radiostreamer out there?
Loonix
New Broadcaster
New Broadcaster
 
Posts: 4
Joined: Sun Jun 11, 2006 5:50 pm

Postby Dave B » Mon Jun 12, 2006 3:16 pm

Loonix wrote:Is anyone from radiostreamer out there?

You're best bet would be to contact the help desk.
Dave
Soft ' N Easy Net Radio

Tel: 1-888-256-0242
"Magic Of The 80's"
Saturdays 8PM EST and Sundays 12PM EST.
Dave B
Super Broadcaster
Super Broadcaster
 
Posts: 484
Joined: Mon May 12, 2003 5:46 pm
Location: Connecticut, USA

Re: Shoutcast Stats PHP Parser

Postby richdevlin761 » Fri Dec 27, 2013 6:51 pm

Make sure your password matches. There is no reason why viewxml shouldn't work, but it does need the correct password.
richdevlin761
New Broadcaster
New Broadcaster
 
Posts: 18
Joined: Thu Dec 12, 2013 6:06 pm


Return to DRS 2006 Radio Streamer

Who is online

Users browsing this forum: No registered users and 1 guest

cron