Go Back   Winamp Forums > SHOUTcast > SHOUTcast Site Design,Widgets and Toolbar

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 1st September 2011, 14:03   #4
sokhi
Junior Member
 
Join Date: Aug 2011
Posts: 4
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, 1026 views)
sokhi is offline   Reply With Quote
 
Go Back   Winamp Forums > SHOUTcast > SHOUTcast Site Design,Widgets and Toolbar

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