Old 24th September 2006, 18:25   #1
DangerousBoy
Junior Member
 
Join Date: Sep 2006
Posts: 5
wierd problem (60)

Hi guys
First of all I want to let you know that I been using shoutcast for the last year and a half, I've using it with IIS, single modem, apache single modem, IIS Binary modem + router, Apache binary modem + router, well ever since is been working just fine plain playlist or live cast.

Well, 2 weeks ago I buogh 2 new computers and I install everything just normal, I ran a test locally it work just fine, then on a live server, and still working fine, but when I Upload everyting to my website I'm getting a
Operation timed out (60), at first I thougt it was bcuz my port whenrn't open but yes they r open then I look in to my router setting and port are as well open, now, this only hapen on my website the same script on my local machines are the same in my website same setting.

So why am I getting this Operation timed out (60) ?
Can this be a problem with my PHP script?
Can this be because my PHP version are different from the one I have on my local machine?

The Following URL's are for testing only.
Live server "my website"
http://media.dangerousboy.com/onfly1/list1.php
[Time out error]

Local server "Testing site"
http://68.48.217.61:85/onfly1/list1.php
[Working]

both are using the same PHP script....
DangerousBoy is offline   Reply With Quote
Old 24th September 2006, 19:39   #2
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
could be.... if the server is local to you, then go to www.canyouseeme.org and have that website check to see if it can contact your server on what ever port you are having communications run through.

If the site throws an error, then well you know know it is a port forwarding problem. If the site is able to open a line on that port, then you know you have a problem with one of your php scripts.
fc*uk is offline   Reply With Quote
Old 24th September 2006, 19:46   #3
DangerousBoy
Junior Member
 
Join Date: Sep 2006
Posts: 5
thank you this is the result

Success: I can see your service on 68.48.217.61 on port (8000)

so my shoutcast server is workin fine...
DangerousBoy is offline   Reply With Quote
Old 24th September 2006, 22:04   #4
hackerdork
Forum King
 
hackerdork's Avatar
 
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
Operation timed out (60)

is not a error from the shoutcast server, but an error on the server running your php script.

thanks for warning us if we go to your website it plays audio loud I hate it when web sites dont give you the choice to turn on the audio or not.


~ D

~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough.
search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn.
hackerdork is offline   Reply With Quote
Old 24th September 2006, 22:17   #5
DangerousBoy
Junior Member
 
Join Date: Sep 2006
Posts: 5
Well, I'm sorry that my website "plays audio loud", I suggest you to use a low volumen on you speakers at all times.
but that wasn't my question.
now based on your answer, you r saying that the problem is thee server where the PHP is executed. on the e.g. I left u can see that boths PHP scripts are the same hosted in a different server but boths are pointing to the same webcast server.
DangerousBoy is offline   Reply With Quote
Old 24th September 2006, 23:01   #6
hackerdork
Forum King
 
hackerdork's Avatar
 
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
dude I cant see the content of the php scripts based on your links! the web server runs the scripts and converts the output to html. php which is PreHttpProcessor, does the processing entirely on the web server, not the web browser like what java scripts do.
Also I could name a script and name is listl1.php but you wouldnt know whats in the content usless I gave you the script as apossed to a link.

also the link with the ip address does this
"&canta=korn & ramstein - freak on a leash rammstein remix&djs=32"

so... again no of your issues have anything to do with shoutcast, but someones php script that you have...

shoutcast being the stream server and the DSP that goes with winamp is what we really can help you with. Some of us know a bit about php , myself included, but cant debug anything without the actuall scripts themself.

~D

~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough.
search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn.
hackerdork is offline   Reply With Quote
Old 25th September 2006, 00:03   #7
DangerousBoy
Junior Member
 
Join Date: Sep 2006
Posts: 5
uh! that makes sense...
well just for the record
--------------------- heres the script ---------
code:
<?php
include('config_radio.php');

$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
echo''.$scdef.' is Offline';
}
if($scsuccs!=1){
fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
$loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "MAXLISTENERS", "BITRATE");
$y=0;
while($loop[$y]!=''){
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE)
$$scphp = urldecode($$scphp);

$y++;
}
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);
$r=1;
while($songatime[$r]!=""){
$t=$r-1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$song[$t] = urldecode($song[$t]);
$dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
$dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$r++;
}

fclose($scfp);
}


if($streamstatus == "1"){
if($servertitle == "DJ Kane") {

echo'
<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel=stylesheet href="" type="text/css">
<title>'.$scdef.'</title>
</head>

<body text="" bgcolor="">


<p align="center"><center>
<img src="online.jpg"><br>
<b>Stream Title:</b> '.$servertitle.'<br>
<?php print("&Culo=$servertitle"); ?>
<b>Listeners:</b> '.$currentlisteners.' / '.$maxlisteners.'<br>
<b>Bitrate:</b> '.$bitrate.'kbps<br>
<b>Current Song:</b> '.$song[0].'</p><b>
</p>
</body>

</html>';
} }

if($streamstatus == "1"){
if($servertitle == "DJ DBoy") {

echo'
<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel=stylesheet href="" type="text/css">
<title>'.$scdef.'</title>
</head>

<body text="" bgcolor="#33333">


<p align="center"><center>
<img src="online.jpg"><br>
<b>Stream Title:</b> '.$servertitle.'<br>
<b>Listeners:</b> '.$currentlisteners.' / '.$maxlisteners.'<br>
<b>Bitrate:</b> '.$bitrate.'kbps<br>
<b>Current Song:</b> '.$song[0].'</p><b>
</p>
</body>

</html>';
} }

if($streamstatus == "0")
{

echo'
<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel=stylesheet href="" type="text/css">
<title>Radio Server Is Offline</title>
</head>
<p>No DJ</p>
<body text="" bgcolor="">
<center>
<img src="offline.jpg">
</body>

</html>';
}
?>

DangerousBoy is offline   Reply With Quote
Old 25th September 2006, 01:28   #8
hackerdork
Forum King
 
hackerdork's Avatar
 
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
pay attention to this line

fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");

most the time php waits up to 60 seconds to complete a connection, and I bet timed out (60) means just that it didnt connect to the source address on the correct port, or the password is jacked up.

make sure you have your adminpassword set and not the stream password, inside config_radio.php even a bad password will result in a timeout.

~D

~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough.
search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn.
hackerdork is offline   Reply With Quote
Old 25th September 2006, 07:13   #9
DangerousBoy
Junior Member
 
Join Date: Sep 2006
Posts: 5
well, much thank you for your help.
it looks like the script is fine and the port to my shoutcast are working if u go to my IP
http://68.48.217.61:8000 u will that is up and running and if u open it with ur winamp u also will lisent to the music "crapy music", so the php script and the shoutcast is not the problem at all, it's my web hosting I don't know but somehow it is, they are using PHP 4.4.4 same version aas I have locally same setting...
why I can't make it work on my hosting aarrggg!!! if we have the same stuff!, also I found this topic u can see that the problem has to do with the way the URL is requested...

http://forums.winamp.com/showthread....16#post1794916

anyway... thank you very much for ur help
DangerousBoy 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