This is a standalone PHP shoutcast status script. This will report stats from your server to your website.
Hope it helps !!!
Quote:
SHOUTcast is a free-of-charge audio homesteading solution. It permits anyone
on the internet to broadcast audio from their PC to listeners across the Internet or any other IP-based network (Office LANs, college campuses, etc.).
Tested on:
- PHP 5.3.5
- Apache 2.2.17
- Chrome 10.0.6
- Internet Explorer 9
- Firefox 4.0
Variables used.
================================================== =====
If you choose not to show any/all:
Here is a list of variables that can be used. If do not wish to show data, just remove the variables.
$scdef = Default station name
$scip = IP shoutcast server
$scport = Port of shoutcast server
$scpass = Admin password (not DJ) to shoutcast server
$ircsite = IRC Server - EX: irc.server.com
$song[t] = Song History:t can range from 0-19. EX: $song[0], $song[1], $song[2] .... $song[19] ----- $song[0] (zerro) is the current song playing.
$servertitle = "Discription" - setting in DJ - DSP (I used for DJ Name).
$servergenre = - setting in DSP.
$bitrate = Quility of the Bitrate - setting in DJ - DSP .
$icq = ICQ# of DJ - setting in DJ - DSP.
$aim = AIM# of DJ - setting in DJ - DSP.
$irc = IRC room of DJ - setting in DJ - DSP.
$serverurl = URL - setting in DJ - DSP
$currentlisteners = Current connected users.
$maxlisteners = Max users for the server.
$irclink = irc://$ircsite/$irc
$listenamp = http://$scip:$scport/listen.pls
$listenlnk = http://$scip:$scport
$averagemin = average listener time in minuets
$song_history = $song[1] to song[19]
Changelog |
================================================== ===== 2.0 - 03.27.2011
- jquery ajax refresh (no more hitting refresh !! )
- Added phrases in lang.php for translations
- Song history only shows when a song is played vs. 19 spaces
- Added source URL (DSP URL - $serverurl)
- Added error feedback for connection problems (debug)
- Added option to hide genre, aim, icq, irc, url if not in DSP source.
1.9 - 8.23.2009
- Cleaned up syntax for PHP5
- Fixed "Avj. Time" on line to display H,M,S
1.8 - 2.17.2006
- Added XML cache + timer
- Added AdminCP setting vs. edit the php file
1.7 - 12.25.2005
- Killed auto create Module on Install
1.6
- Fixed Media Player in non IE browsers
- Fixed Real Player in non IE browsers
1.5
- Added 19 song history vs. 5
- Added Windows Media Player popup
- Added Real Media Player popup
- Added Quicktime Media Player popup
- Added marquee to Curent song playing
- Added Avj. Connect Time (avj. of the total time users connected; untill server reboot)
- Added Media Type (tells what the source file format is: mpeg, CDA, WAV)
- Added Hit Count (total connections to the server since the server reboot)
- Added Most Ever (total connections at one time to the server since the server reboot)
- Added 4 images for choice of media player
Warning: fopen(shout.xml) [function.fopen]: failed to open stream: Permission denied in /home/www/config.php on line 60
Warning: fwrite(): supplied argument is not a valid stream resource in /home/www/config.php on line 61
Warning: fclose(): supplied argument is not a valid stream resource in /home/www/config.php on line 62
Answer:
CHMOD shout.xml 777
- this is the cache file that is updated on your local webserver
Most people pay for a shoutcast service, co-locate a server, host small servers on their local cable / dsl modem, or install via SSH to their web host.
Make sure you have Unlimited Bandwith on your web package.
The bandwith useage depends on "# of users connected" and the quility of the song in kbps.
uploadspeed / bitrate = max listeners , always leave some for overhead
Example: 256k upload speed / 56k bitrate = max 4 listeners ( 4* 56 = 224kbps ) keep in mind that your provider says he gives you 256kbps upload, the actual speed might be much lower.
Bitrates
192k CD quility
56k stereo
24k mono (like an AM radio, but works for music)
8k voice
HELP !! I Install the hack and I am always off line
To put less load on the shoutcast server and to speed up page loads. The shoutcast info the script gets is cached to your local webserver in that XML file. The XML file is called up when a request to show the data. If your cache file does not update then you are not connecting to the shoutcast server.
9 out of 10 times this is because of settings (port,ip,password) or your webhost has blocked ports. Many hosts only allow queries for data on port 80 (http, rss, xml feeds). I have seen many webhosts designate a port for "other" needs of their clients.
If you are 100% sure your setting and install is correct.
Send a ticket to your webhost and see if ports are blocked (ie:8000). If so they may give you another port you can use. Reset your shoutcast server to output on that port. Lastly, if there is nothing that your host will do, you can move the shoutcast server to output on port 80 vs. 8000.
Warning: fsockopen() [function.fsockopen]: unable to connect to radiovip.hopto.org:8787 (Connection timed out) in /home/andrei/public_html/radiovipnet/config.php on line 20
Warning: fsockopen() [function.fsockopen]: unable to connect to radiovip.hopto.org:8787 (Connection timed out) in /home/andrei/public_html/radiovipnet/config.php on line 39
I've got these erorrs. It is possible that the server where I publish de .php file have the port locked?