I have a Shoutcast stream up and running (http://lime.citrus3.com:8178/)
And when I try to use the "Shoutcast class" it works fine on my localhost.

When I upload it to my public web server it gives me a time out error (110) which I'm assuming is due to fsock/fsockopen being disabled.

I tried doing a work around using cURL, which worked again on my localhost.

But when I uploaded it to my public web server it just sits there loading, and I think it's trying to download the stream rather then the html page.


I've tried a few snippets from here and there, and they all work on my localhost, but always seem to fail on my web server.

This is part of one of the scripts I'm using, which does work (just not on my silly web server)
PHP Code:
$mysession curl_init();
curl_setopt($mysessionCURLOPT_URL"http://$server/admin.cgi?mode=viewxml");
curl_setopt($mysessionCURLOPT_HEADERfalse);
curl_setopt($mysessionCURLOPT_RETURNTRANSFERtrue);
curl_setopt($mysessionCURLOPT_POSTfalse);
curl_setopt($mysessionCURLOPT_HTTPAUTHCURLAUTH_BASIC);
curl_setopt($mysessionCURLOPT_USERPWD"admin:$password");
curl_setopt($mysessionCURLOPT_FOLLOWLOCATIONtrue);
curl_setopt($mysessionCURLOPT_USERAGENT$_SERVER['HTTP_USER_AGENT']);
$xml curl_exec($mysession);
curl_close($mysession); 

Is there anything i can do to fix this?