웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
사용법은 첨부화일에 있는 아래내용(view.php)을 참고하세요
<?
echo "<meta http-equiv=Content-Type content=text/html;charset=euc-kr>";
include("class_w_info.php");
$winamp = new winamp_cast_info;
//$url = "http://www.foxcast.co.kr/listen.pls";
//$url = "http://RED316YY.diodeo.com/listen.pls";
//$url = "http://www.mukulcast.com/listen.pls";
//$url = "http://fox.inlive.co.kr:2020/listen.pls";
//$url = "http://TINA24.diodeo.com/listen.pls";
$url = "http://miin.jukeonfm.com/listen.pls";
//$url = "http://www.saycast.com/raspberi1004.pls";
$winamp->set_cast_url($url);
echo "서버의 갯수: ";
echo $winamp->cast_info["server_amount"];
echo "<br>";
echo "현재청취인원: ";
echo $winamp->cast_info[now_listen];
echo "<br>";
echo "최대청취가능 인원: ";
echo $winamp->cast_info[max_listen_persons];
echo "<br>";
echo "최대청취자수: ";
echo $winamp->cast_info[peak];
echo "<br>";
echo "방송음질: ";
echo $winamp->cast_info[kbps];
echo "<br>";
echo "평균청취시간: ";
echo $winamp->cast_info[a_l_time];
echo "<br>";
echo "방송타이틀: ";
echo $winamp->cast_info[title];
echo "<br>";
echo "방송장르: ";
echo $winamp->cast_info[genre];
echo "<br>";
echo "URL: ";
echo $winamp->cast_info[url];
echo "<br>";
echo "aim: ";
echo $winamp->cast_info[aim];
echo "<br>";
echo "IRC: ";
echo $winamp->cast_info[irc];
echo "<br>";
echo "현재나오는음악제목: ";
echo $winamp->cast_info[song];
echo "<br>";
# 방송히스토리를 알고 싶을경우
$history_array = $winamp->cast_info[history];
for($i=0;$i <= sizeof($history_array["time"])-1;$i++){
echo $history_array["time"][$i];
echo " :::: ";
echo $history_array["title"][$i];
echo "<br>";
}
?>
winamp 방송정보 알아오기 (2005년 새로 코딩한 버전)
2005.05.06 13:32
사용법은 첨부화일에 있는 아래내용(view.php)을 참고하세요
<?
echo "<meta http-equiv=Content-Type content=text/html;charset=euc-kr>";
include("class_w_info.php");
$winamp = new winamp_cast_info;
//$url = "http://www.foxcast.co.kr/listen.pls";
//$url = "http://RED316YY.diodeo.com/listen.pls";
//$url = "http://www.mukulcast.com/listen.pls";
//$url = "http://fox.inlive.co.kr:2020/listen.pls";
//$url = "http://TINA24.diodeo.com/listen.pls";
$url = "http://miin.jukeonfm.com/listen.pls";
//$url = "http://www.saycast.com/raspberi1004.pls";
$winamp->set_cast_url($url);
echo "서버의 갯수: ";
echo $winamp->cast_info["server_amount"];
echo "<br>";
echo "현재청취인원: ";
echo $winamp->cast_info[now_listen];
echo "<br>";
echo "최대청취가능 인원: ";
echo $winamp->cast_info[max_listen_persons];
echo "<br>";
echo "최대청취자수: ";
echo $winamp->cast_info[peak];
echo "<br>";
echo "방송음질: ";
echo $winamp->cast_info[kbps];
echo "<br>";
echo "평균청취시간: ";
echo $winamp->cast_info[a_l_time];
echo "<br>";
echo "방송타이틀: ";
echo $winamp->cast_info[title];
echo "<br>";
echo "방송장르: ";
echo $winamp->cast_info[genre];
echo "<br>";
echo "URL: ";
echo $winamp->cast_info[url];
echo "<br>";
echo "aim: ";
echo $winamp->cast_info[aim];
echo "<br>";
echo "IRC: ";
echo $winamp->cast_info[irc];
echo "<br>";
echo "현재나오는음악제목: ";
echo $winamp->cast_info[song];
echo "<br>";
# 방송히스토리를 알고 싶을경우
$history_array = $winamp->cast_info[history];
for($i=0;$i <= sizeof($history_array["time"])-1;$i++){
echo $history_array["time"][$i];
echo " :::: ";
echo $history_array["title"][$i];
echo "<br>";
}
?>