Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   every stats script i try doesnt work (http://forums.winamp.com/showthread.php?t=289235)

Brendon-Dawg 29th March 2008 05:49

every stats script i try doesnt work
 
my shoutcast works i entered right port and ip

says errors like connection refused!

thanks for any help =]

Sawg 29th March 2008 05:57

What exactly do the errors say. Copy and paste from the DNAS log.

Brendon-Dawg 29th March 2008 07:25

I've tried several scripts before and decided to try one again, today.

I used this one..
http://www.streamsolutions.co.uk/index.php?page=s2#ad

I get the error Connection Refused!

Thanks for your reply.

**EDIT** The code is.

Quote:

<div style="Visibility: Hidden; Position: Absolute;">
<?
$open = fsockopen("59.167.58.46","8000");
if ($open) {
fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
$read = fread($open,1000);
$text = explode("content-type:text/html",$read);
$text = explode(",",$text[1]);
} else { $er="Connection Refused!"; }
?>
</div>
<?
if ($text[1]==1) { $state = "Up"; } else { $state = "Down"; }
if ($er) { echo $er; exit; }
echo "<font face=verdana size=1>
Listeners: $text[0] of $text[3] ($text[4] Unique)<br>
Listener Peak: $text[2]<br>
Server State: <b>$state</b><br>
Bitrate: $text[5] Kbps<br>
Current Song: $text[6]
</font>";?>


Sawg 29th March 2008 07:31

Maby hosts do not allow the fopen() fsocketopen() commands used in a lot of the scripts. You may want o double check with your host to see if they are allowed.

or create a page that is JUST phpinfo() and see if allow_url_fopen is set.

Brendon-Dawg 29th March 2008 07:34

Sorry I'm a complete noob at this :P
Create a php page or html page?
and how do I know if allow_url_fopen is set?

My host atm is a free one soo :P
http://987mb.com

Sawg 29th March 2008 07:50

Contact your host for further support of the features they offer, and what functions they allow or disabled with their PHP offering.

But just remember, you usually get what you pay for. :)

Brendon-Dawg 29th March 2008 23:14

Will do :)
Thanks for your help.

networknova 3rd April 2008 16:58

just thought I'd add that most free hosts have very strict configurations, especially if they allow php scripts. you might want to look into paid hosting. support tends to be much better than free hosts as well :)


All times are GMT. The time now is 14:25.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.