- 18 Haz 2014
- 447
- 3
Merhaba arkadaşlarım hocalarım bugün sizlere 30 satırlık Facebook Video İndirici kodlarını vericem dileğinize göre editleyebilirsiniz.
1 teşekkurunuzu alabilirim varsa
1 teşekkurunuzu alabilirim varsa
Kod:
<?php
if (isset($_POST['url'])) {
$url='https://keepvid.com/?url='.$_POST['url'].'';
$veri = file_get_contents($url);
$veri = str_replace('<a href="javascript:;"', '', $veri);
preg_match('@<td><a href="(.*?)"@si',$veri,$video);
preg_match('@<p>(.*?)</p>@si',$veri,$baslik);
if ( $baslik[1] == 'Please check the URL and try it again' ){
$baslik[1] = '<font color="red">Lütfen URL yi kontrol edin ve tekrar deneyin</font>';
}
echo '<center>
<h3>'.$baslik[1].'</h3>
<p>
<video width="400" height="400" controls="">
<source src="'.$video[1].'">
Your browser does not support HTML5 video.
</video>
<br> <button type="button" href="'.$video[1].'" download>
İndir </a></button>
</p>
';
}
echo $bilgi; ?>
<form action="" method="post">
<input type="text" name="url" placeholder="Facebook Video Linki Giriniz. ">
<input type="submit">
</form>
Son düzenleme: