이 코드를 확인하면 도움이 될 것입니다.
$cc->headers[] = "Host: www.teledunet.com";
$cc->headers[] = "Referer: http://www.teledunet.com/";
$html = $cc->get("http://www.teledunet.com/mobile/?con");
preg_match("/var aut='\?id0=(.*?)'/", $html, $timex);
$swf = "http://www.teledunet.com/mobile/player.swf?id0=".$timex[1]."&channel=".$tmp[1];
$tmxx = $tmp[1];
preg_match("|rtmp://(.*?)/$tmxx|", $html, $r);
if (empty($r[0])){
$r[0] = "rtmp://5.135.134.110:1935/live";
}
echo "\r\nStart of ".$tmp[0]." in progress...\r\n";
$cmd = 'rtmpdump -q -v -r "'.$r[0].'" -W "'.$swf.'" -p "http://www.teledunet.com/mobile/?con" -y "'.$tmp[1].'" | "'.$vlc.'" --meta- title="'.$tmp[0].' (Teledunet by Darby_Crash)" - '.$out.'';
shell_exec($cmd);
이 코드는 문제를 해결하는 데 도움이 될 수 있지만 코드 만 대답하면 품질이 좋지 않습니다. 더 나은 대답은 코드의 기능을 설명하고, 코드를 삽입 할 위치를 표시하고, 접근법이 취해진 이유를 설명하고, 관련 문서에 링크합니다. –