Old 27th August 2011, 20:07   #1
sokhi
Junior Member
 
Join Date: Aug 2011
Posts: 7
php code for SHOUTcast 2 DNAS Status

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
sokhi is offline   Reply With Quote
Old 29th August 2011, 07:48   #2
Pastor001
Junior Member
 
Join Date: Aug 2011
Posts: 1
Bendiciones no puedo obtener el codigo de mi radio me podrian ayudar porque cuando entro a link no me aparece
Pastor001 is offline   Reply With Quote
Old 31st August 2011, 18:34   #3
Geeque112
Junior Member
 
Join Date: Sep 2006
Location: Chicago,IL
Posts: 39
Looks pretty good so far Sokhi.
Geeque112 is offline   Reply With Quote
Old 1st September 2011, 14:03   #4
sokhi
Junior Member
 
Join Date: Aug 2011
Posts: 7
Re-php code for SHOUTcast 2 DNAS Status

Here is code by Music Ticker.
Please edit config.php for manditory config items

only two line changed.

Line:-69
PHP Code:
fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml HTTP/1.1\nUser-Agent:Mozilla\n\n"); 
changed to
PHP Code:
fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml&sid=1 HTTP/1.1\nUser-Agent:Mozilla\n\n"); 
Line:-81
PHP Code:
$sp_data=ereg_replace("^.*<!DOCTYPE","<!DOCTYPE",$sp_data); 
changed to
PHP Code:
$sp_data=substr($sp_data, (strpos($sp_data"\r\n\r\n")+4)); //changed 

If you find any issue please PM
Regards
Attached Files
File Type: zip scxml-1.4.2.zip (18.4 KB, 1953 views)
sokhi is offline   Reply With Quote
Old 4th September 2011, 01:27   #5
kosxo
Junior Member
 
Join Date: Sep 2011
Posts: 11
sokhi

i ' ve tried the code but not working in hosting platform,with my local server i get this
kosxo is offline   Reply With Quote
Old 7th September 2011, 15:17   #6
DrO
 
Join Date: Sep 2003
Posts: 27,880
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
DrO is offline   Reply With Quote
Old 15th September 2011, 23:01   #7
p0rt
Senior Member
 
Join Date: Nov 2010
Posts: 149
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
p0rt is offline   Reply With Quote
Old 5th October 2011, 14:53   #8
carluska
Junior Member
 
Join Date: Sep 2006
Posts: 13
Quote:
Originally Posted by sokhi View Post
Here is code by Music Ticker.
Please edit config.php for manditory config items

only two line changed.

Line:-69
PHP Code:
fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml HTTP/1.1\nUser-Agent:Mozilla\n\n"); 
changed to
PHP Code:
fputs($sp,"GET /admin.cgi?pass=$this->password&mode=viewxml&sid=1 HTTP/1.1\nUser-Agent:Mozilla\n\n"); 
Line:-81
PHP Code:
$sp_data=ereg_replace("^.*<!DOCTYPE","<!DOCTYPE",$sp_data); 
changed to
PHP Code:
$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
carluska is offline   Reply With Quote
Old 5th October 2011, 15:02   #9
DrO
 
Join Date: Sep 2003
Posts: 27,880
you just need to access /nextsong?sid=# (public page) to get the next song.

-daz
DrO is offline   Reply With Quote
Old 14th October 2011, 14:01   #10
sokhi
Junior Member
 
Join Date: Aug 2011
Posts: 7
Re:php code for SHOUTcast 2 DNAS Status

carluska
php code with Stream Metadata

http://www.megafileupload.com/en/fil...pdate-zip.html

for free update or download Country identification based on IP address database

http://www.phptutorial.info

Regards
sokhi is offline   Reply With Quote
Old 30th October 2011, 19:02   #11
ridz
Senior Member
 
Join Date: Oct 2011
Posts: 105
Quote:
Originally Posted by sokhi View Post
carluska
php code with Stream Metadata

http://www.megafileupload.com/en/fil...pdate-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!
ridz is offline   Reply With Quote
Old 4th November 2011, 05:48   #12
sokhi
Junior Member
 
Join Date: Aug 2011
Posts: 7
Quote:
Originally Posted by ridz View Post
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

code:
putenv("TZ=Asia/Calcutta");


According to your country

regards
sokhi is offline   Reply With Quote
Old 29th July 2013, 09:05   #13
J-B
Junior Member
 
Join Date: Jul 2013
Posts: 4
Hi sokhi,

i have updated to php5.4.4 and I get an error like this:

Quote:
PHP Fatal error: Call-time pass-by-reference has been removed in /var/www/web9/html/v2/radio/scxml-obj.php on line 61
Is it possible to fix it?

Thanks!

*** Edit

removed all "&" from scxml-obj.php and it works fine
J-B is offline   Reply With Quote
Old 12th January 2014, 15:52   #14
sokhi
Junior Member
 
Join Date: Aug 2011
Posts: 7
Re upload on shoutcast

Edit on 12-01-2014: Please note, scxml-1-4-2-update-zip remove by megafileupload server. re upload on shoutcast server download attachment if you need.



Quote:
Originally Posted by sokhi View Post
carluska
php code with Stream Metadata

http://www.megafileupload.com/en/fil...pdate-zip.html

for free update or download Country identification based on IP address database

http://www.phptutorial.info
Regards
Attached Files
File Type: zip scxml-1.4.2-update.zip (689.0 KB, 715 views)
sokhi is offline   Reply With Quote
Old 27th January 2014, 08:45   #15
kription
Junior Member
 
Join Date: Jan 2014
Posts: 1
Kription - updated version

Almost a decade since the last time I touched the original source (and it shows), I'm here to put up what will *extremely likely* to be the last version of SCXML - v1.666 (tip o'da hat).

SCXML ver. 1.666

Here is the change log:

2014/01/26 - 23:46 ## WOW - almost an entire decade.
Package version - 1.666
- Removing a lot of old junk
- Removed old Simple script which read the server's "7" file
- Include StreamID (sid) for admin request and listen to link
- Change string parsing for returned data
## Thanks to Sokhi (http://forums.winamp.com/member.php?u=421047)
## http://forums.winamp.com/showpost.ph...29&postcount=4
* Version Changes:
- object code: 0.666
- sample code: 0.666
- config code: 0.666
- simple code: 0.666
- readme code: 0.666


Cheers all! It has been a blast.
kription is offline   Reply With Quote
Old 10th February 2014, 22:18   #16
bamfm
Junior Member
 
Join Date: Feb 2014
Posts: 11
How can I make this work on my VPS?

My website is running on Internet Information Services.
bamfm is offline   Reply With Quote
Old 16th August 2014, 08:11   #17
orton
Junior Member
 
Join Date: Aug 2014
Posts: 19
hey i am orton ..new in this forum..so please help me.How can I make this work ?
orton is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Site Design

Tags
php scrip for shoutcast 2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump