View Single Post
Old 23rd March 2011, 01:03   #17
neralex
Junior Member
 
Join Date: Mar 2011
Posts: 33
Quote:
Originally Posted by MADxHAWK View Post
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:
$curl = curl_exec($ch);

after add:
code:
var_dump($curl)

This line will dump the data curl gets.

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;
hey MADxHAWK!

thanks for your reply but the script is not working. i become a redirect to the index.html. can you test your script before you post it, please.

my questions:
why is the curl not close and/or where is the right place for this line?
code:
curl_close($ch);


why is'nt in your script a call to the port?
code:
$ch = curl_init($sc_host . '/admin.cgi?mode=viewxml&sid=$sc_sid');


why give the the sc_serv2 a redirect?
i have try in my putty:
code:
curl -g -u admin:PASSWORD domain.tld:PORT/admin.cgi?mode=viewxml&sid=1


greets
neralex is offline   Reply With Quote