View Full Version : php code for SHOUTcast 2 DNAS Status
sokhi
27th August 2011, 19:07
Hi
I have modify music ticker php script modify by me, please check and suggestion any change. i need some help from advance user for; how to add multimarker (place) from multi IP on google map? i will post code soon.
please check it
http://www.homeserver.co.in
Regards
Pastor001
29th August 2011, 06:48
Bendiciones no puedo obtener el codigo de mi radio me podrian ayudar porque cuando entro a link no me aparece
Geeque112
31st August 2011, 17:34
Looks pretty good so far Sokhi.
sokhi
1st September 2011, 13:03
Here is code by Music Ticker.
Please edit config.php for manditory config items
only two line changed.
Line:-69
fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml HTTP/1.1\nUser-Agent:Mozilla\n\n");
changed to
fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml&sid=1 HTTP/1.1\nUser-Agent:Mozilla\n\n");
Line:-81
$sp_data=ereg_replace("^.*<!DOCTYPE","<!DOCTYPE",$sp_data);
changed to
$sp_data=substr($sp_data, (strpos($sp_data, "\r\n\r\n")+4)); //changed
If you find any issue please PM
Regards
kosxo
4th September 2011, 00:27
i ' ve tried the code but not working in hosting platform,with my local server i get this
DrO
7th September 2011, 14:17
kosxo: based on your other posts, most likely it's from this script being used against 2.0 final when you're using (most likely) the first 2.0 beta which doesn't have a lot of the pages / data available as 2.0 final has.
sokhi: nice to see people starting to adopt and create things for the v2 DNAS (hopefully wasn't too much work and was worth it :) ).
-daz
p0rt
15th September 2011, 22:01
i create a whole control panel, when sc_trans works.. 1 form to config a single .conf file to start sc_trans on a dedicated box
still, just updating dnas 1.9, that might not being working admin panel, in the latest version of http://sourceforge.net/projects/nullnuke/
most of it is done with generating pls files, just the configuration files to sort out for dnas 2, running sc_trans
carluska
5th October 2011, 13:53
Here is code by Music Ticker.
Please edit config.php for manditory config items
only two line changed.
Line:-69
fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml HTTP/1.1\nUser-Agent:Mozilla\n\n");
changed to
fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml&sid=1 HTTP/1.1\nUser-Agent:Mozilla\n\n");
Line:-81
$sp_data=ereg_replace("^.*<!DOCTYPE","<!DOCTYPE",$sp_data);
changed to
$sp_data=substr($sp_data, (strpos($sp_data, "\r\n\r\n")+4)); //changed
If you find any issue please PM
Regards
Hello sokhi great job, it works fine for me, just a thing how can u add the next song feature to this script, i don't know php!!!!
Thanks
DrO
5th October 2011, 14:02
you just need to access /nextsong?sid=# (public page) to get the next song.
-daz
sokhi
14th October 2011, 13:01
carluska
php code with Stream Metadata
http://www.megafileupload.com/en/file/329669/scxml-1-4-2-update-zip.html
for free update or download Country identification based on IP address database
http://www.phptutorial.info
Regards
ridz
30th October 2011, 19:02
carluska
php code with Stream Metadata
http://www.megafileupload.com/en/file/329669/scxml-1-4-2-update-zip.html
for free update or download Country identification based on IP address database
http://www.phptutorial.info
Regards
uploaded this on my server, but date is not updated in realtime. how can i make the song title and artist update in real time? pls reply. thanks!
sokhi
4th November 2011, 05:48
uploaded this on my server, but date is not updated in realtime. how can i make the song title and artist update in real time? pls reply. thanks!
search google for edit timezone in php.ini
or
edit line 46 on index.php
putenv("TZ=Asia/Calcutta");
According to your country
regards
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.