Old 29th March 2008, 05:49   #1
Brendon-Dawg
Junior Member
 
Join Date: Mar 2008
Posts: 7
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 =]
Brendon-Dawg is offline   Reply With Quote
Old 29th March 2008, 05:57   #2
Sawg
Forum King
 
Join Date: Jun 2000
Location: Phoenix, AZ
Posts: 7,456
Send a message via ICQ to Sawg Send a message via AIM to Sawg Send a message via Yahoo to Sawg
What exactly do the errors say. Copy and paste from the DNAS log.

| Brought to you by ^V ^C | The one... the original... no seriously!
Sawg is offline   Reply With Quote
Old 29th March 2008, 07:25   #3
Brendon-Dawg
Junior Member
 
Join Date: Mar 2008
Posts: 7
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>";?>
Brendon-Dawg is offline   Reply With Quote
Old 29th March 2008, 07:31   #4
Sawg
Forum King
 
Join Date: Jun 2000
Location: Phoenix, AZ
Posts: 7,456
Send a message via ICQ to Sawg Send a message via AIM to Sawg Send a message via Yahoo to Sawg
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.

| Brought to you by ^V ^C | The one... the original... no seriously!
Sawg is offline   Reply With Quote
Old 29th March 2008, 07:34   #5
Brendon-Dawg
Junior Member
 
Join Date: Mar 2008
Posts: 7
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
Brendon-Dawg is offline   Reply With Quote
Old 29th March 2008, 07:50   #6
Sawg
Forum King
 
Join Date: Jun 2000
Location: Phoenix, AZ
Posts: 7,456
Send a message via ICQ to Sawg Send a message via AIM to Sawg Send a message via Yahoo to Sawg
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.

| Brought to you by ^V ^C | The one... the original... no seriously!
Sawg is offline   Reply With Quote
Old 29th March 2008, 23:14   #7
Brendon-Dawg
Junior Member
 
Join Date: Mar 2008
Posts: 7
Will do
Thanks for your help.
Brendon-Dawg is offline   Reply With Quote
Old 3rd April 2008, 16:58   #8
networknova
Senior Member
 
Join Date: Mar 2005
Location: ontario
Posts: 402
Send a message via Yahoo to networknova
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
networknova is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump