|
|
#15 |
|
Senior Member
Join Date: Jan 2010
Posts: 182
|
Hi,
sorry have missed this post :S This script uses the phpCURL libary to connect to the shoutcast server. If you dont get any data maybe this lib is not installed on your server/webspace. Also most free webspacehoster dont allow external connections (like funpic for example). Look for the line: code: after add: code: This line will dump the data curl gets. You can use this script with a shoutcast 1 also. you just have to change the line like jaromanda sugested. But you wont get all data from shoutcast 1. For example shoutcast 1 provided also webhits, admin logins and a few more data that shoutcast 2 doesnt. To get an output you need this line for example: (sorry there was a typo in the example) echo $dnas_data ['SONGTITLE']; This line wont give you any output: echo $xml->SONGTITLE; A simple html file to get the current song and songhistory could look something like this: current_song.php code: The file have to be named *.php NOT *.htm or *.html !! else the phpcode wont be parsed. Maybe i will write a shoutcast class working where you can select weather to use curl or fsockopen for connection to shoutcast working with both versions of the DNAS. |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|