file_get_contents çalışmadığı için dışarıdan sorgulama yapamıyorum...sizden ricam allataki kodu nasıl düzenlemem gerek çalışması için lütfen yardım edin
<?
session_start();
if (extension_loaded('zlib')) {
@ob_start('ob_gzhandler');
}
require('ayar.php');
require('ex.php');
require('HTTP.php');
$admin_yetki = $_SESSION['yetki'];
if (!$_SESSION['admin_id']) {
echo '<script>';
echo 'location="index.php"';
echo '</script>';
exit();
}
function get_link($id, $redirect = false) {
$url = 'http://www.youtube.com/watch?v='.$id;
if ($html = file_get_contents($url)) {
if (preg_match('/\/player2\.swf\?video_id=.*?&t=(.*?)"/', $html, $match)) {
$url = 'http://youtube.com/get_video.php?video_id='.$id.'&t='.$match[1];
if ($redirect && $redirected_url = get_redirected_url($url)) {
$url = $redirected_url;
}
return $url;
}
}
return false;
}
function get_redirected_url($url) {
$res = HTTP::head($url);
if (preg_match('/^3/', $res['response_code'])) {
return $res['Location'];
}
return false;
}
?>gördüğünüz gibi youtube den video çeken bir script bu lütfen yardım edin..
belki hoşuna gidr...