Uploading stats to Web server
-
- Posts: 4
- Joined: Fri Dec 26, 2003 8:38 am
Uploading stats to Web server
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:
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!
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; ?>
Thanks much!
- Jay
- Will work for food (Administrator)
- Posts: 3027
- Joined: Mon Jan 14, 2002 12:48 am
- Location: Next Door
- Contact:
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.
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
-
- Posts: 4
- Joined: Fri Dec 26, 2003 8:38 am
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.
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.