View Single Post
Old 5th October 2011, 14:53   #6
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