Uploading stats to Web server

Ask questions, request features, or just complement us about our software and services.
Post Reply
ThatAdamGuy
Posts: 4
Joined: Fri Dec 26, 2003 8:38 am

Uploading stats to Web server

Post by ThatAdamGuy »

Hi there,

I've figured out how to upload now-playing type stats via FTP and UWS, but a couple of things elude me:

1) Why doesn't this work to show whether my shoutcast is online or not:

Code: Select all

<?php echo $status; ?>
2) I realize I can get this working via FTP instead of UWS, and I'm curious to know if there are specific benefits of UWS over FTP or visa versa.

Thanks much!
User avatar
Jay
Will work for food (Administrator)
Posts: 3027
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

1) because you must pull out the status on a particular server not just globally, say you have 3 servers 1 down 2 up. What would $status have in it? We aren't down, but we aren't all up either.

2) The benefits vary, but in my opinion the greatest is mobility, you will basically be able to include your statistics on any page, and with a properly setup catcher.php script you could could distribute those stats to anything anywhere. (MySQL, another webserver, or any other database) The other benefit is it's lite. Not nearly as much to transfer, and is much more customizable then the FTP feature.
- Jay
ThatAdamGuy
Posts: 4
Joined: Fri Dec 26, 2003 8:38 am

Post by ThatAdamGuy »

Ah, thanks for the info!

As for my situation, I'm broadcasting two different sets of streams (two 96, four 24) from my humble DSL connection, and if one of 'em is up, they're likely all up.

So a status indicator via UWS would be extremely handy, whether it's a "status_1" or a "status_all" (either all on, or not all on, etc.). Right now, on this page, I'm having to use a combination of FTP and UWS services to get both status info and mixed-on-the-page playing info.

That aside, I must really thank you for this very fine (and free!) tool. It's wonderful for those of us who are just doing this radio thing as a goofy hobby and can't really afford to be shelling out much dough for it.
User avatar
Jay
Will work for food (Administrator)
Posts: 3027
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

nah just use $server[n]['status] I believe. Where n is the server you want to get the status of.
- Jay
ThatAdamGuy
Posts: 4
Joined: Fri Dec 26, 2003 8:38 am

Post by ThatAdamGuy »

Ah, that did it... thanks so much!
Post Reply