
04.04.2009, 18:55
|
|
Познавший АНТИЧАТ
Регистрация: 12.03.2008
Сообщений: 1,379
С нами:
9560486
Репутация:
1809
|
|
Vid0k
по ссылке http://www.actionscript.org/forums/showthread.php3?t=149986 есть код:
<?php
$ip = "205.188.215.231";
$port = "8016";
$open = fsockopen($ip,$port);
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!";
}
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]<br>
</font>";
?>
но он выдаёт:
Warning: fsockopen(): php_network_getaddresses: gethostbyname failed in /home/.../public_html/radio.php on line 5
Warning: fsockopen(): unable to connect to http://88.191.102.29:7204 in /home/s.../public_html/radio.php on line 5
Connection Refused!

Последний раз редактировалось mff; 04.04.2009 в 18:58..
|
|
|