CRACKED IT !! 도움을
감사하지만, 그것이 작동 :)
는 내가 다시 내 명령에 틱. PHP는 웹 페이지를 통과 명령 행 도구를 사용하여 얻을 수 있었다. 프로그램이 주어진 url (양식의 POST에서 가져온 변수)에서 비디오를 다운로드하고 다운로드 한 비디오를 플래쉬 폴백 (fallback) 기능이있는 임베디드 HTLM 5 비디오 요소에 넣습니다.
특정 브라우저에서는 mp4를, 다른 브라우저에서는 webm을 가져 오는 구문을 작성하여 태그를 지원하지 않는 구형 브라우저의 경우 플래시를 사용하여 항상 작동해야합니다.
는 잘 작동 :)
코드 참조 : -
<?php
$input = $_POST['url'];
function browser_info($agent=null) {
$known = array('msie', 'firefox', 'safari', 'webkit', 'opera', 'netscape',
'konqueror', 'gecko');
$agent = strtolower($agent ? $agent : $_SERVER['HTTP_USER_AGENT']);
$pattern = '#(?<browser>' . join('|', $known) .
')[/ ]+(?<version>[0-9]+(?:\.[0-9]+)?)#';
if (!preg_match_all($pattern, $agent, $matches)) return array();
$i = count($matches['browser'])-1;
return array($matches['browser'][$i] => $matches['version'][$i]);
};
$ua = browser_info();
if($ua['firefox']):
$filename = `C:\Windows\dl.exe -e -f 45/44/43/35/34/5 $input`;
$download = `C:\Windows\dl.exe -o "%(title)s.%(ext)s" -f 45/44/43/35/34/5 $input`;
$output = `C:\Windows\dl.exe -g -f 45/44/43/35/34/5 $input`;
else:
$filename = `C:\Windows\dl.exe -e -f 22/18/35/34/5 $input`;
$download = `C:\Windows\dl.exe -o "%(title)s.%(ext)s" -f 22/18/35/34/5 $input`;
$output = `C:\Windows\dl.exe -g -f 22/18/35/34/5 $input`;
endif;
?>
<html>
<head>
<script type="text/javascript">
window.onunload=function(){
window.open('/watch/close.php', '_blank', '');
window.close();
};
</script>
<link rel="stylesheet" href="../css/navigation.css" type="text/css" media="screen" />
<link rel="stylesheet" href="index.css" type="text/css" media="screen" />
</head>
<body>
<ul class="t1">
<li class="t2"><a href="/">Home</a></li>
<li class="t2 t3"><a href="../Video">Videos</a></li>
<li class="t2 t4"><a href="/Downloads">Downloads</a></li>
<li class="t2 t8"><a href="/web">Proxy</a></li>
<li class="t2 t5"><a href="../Forsale">For Sale</a></li>
<li class="t2 t6"><a href="/owa">E-mail</a></li>
<li class="t2 t7"><a href="/CV">My CV</a></li>
</ul>
<br />
<div class="white">
<video controls id="vid" width="800" height="450" autoplay="autoplay" preload="none" poster="../Images/loading.jpg">
<source src="<?php echo $filename; ?>.mp4">
<source src="<?php echo $filename; ?>.webm" type="video/webm; codecs="vp8, vorbis"">
<object>
<embed
src="player.swf"
width="640" height="360"
bgcolor="000000"
allowscriptaccess="always"
allowfullscreen="true"
type="application/x-shockwave-flash"
flashvars="width=640&height=360&type=video&fullscreen=true&volume=100&autostart=true&file='<?php echo $filename; ?>.flv'"
/>
</object>
</video>
</div>
<div class="white">
<a onmouseover="self.status='Downloadable file'; return true" onmouseout="self.status=''" onclick="alert('Please right click and use \'Save Target/Link As\'.'); return false" href="<?php echo $output; ?>">Download this video</a>
</div>
</body>
</html>
** 지금까지 노력이 무엇 ** –
https://www.google.com/search?q=I 'm + 찾고 + to + have + a + PHP + script + on + one + of + 페이지 + 그 + 실행 + a + 명령 + line + exe + + 매개 변수 + that + the + 웹 페이지 + can + then & oq = 내가 사용하는 + 출력 + 사용 + + + + PHP + 스크립트 + on + one + of + the + 페이지 + that + 실행 + a + command + line + exe + with + 매개 변수 + 그 + 웹 페이지 + 수 + 사용 + + 출력 +. & aqs = chrome..69i57.1766j0j8 & sourceid = chrome & espvd =210 & es_sm = 93 & ie = UTF-8 – Sebas
[ ternal 프로그램 데이터] (http://stackoverflow.com/questions/2778122/php-retrieve-external-program-data) – aynber