I’m Problem with my mp3 script, when i try to search video, thare is the problem..!
[QUOTE]
Warning: file_get_contents([url]http://www.youtube.com/results?search_query=rihanna&page=1):
youtube.php
[code=php]<?
$p = $_GET[‘page’];
$srch = str_replace(‘ ‘, ‘%20’, $srch);
$srch = str_replace(‘.’, ‘ ‘, $srch);
//$srch = urldecode($srch);
$url1 = ” . ‘http://www.youtube.com/results?search_query=’ . $srch . ‘&page=’ . $p;
$res = file_get_contents($url1);
$i = 1;
$hitung = 0;
$res = strstr($res, ‘<div id=”results-main-content”>’);
if ($res)
{
while ($i <= 20)
{
$res = strstr($res, ‘<div class=”video-entry”>’);
$dodol = extstres($res, ‘<a id=”video-url’, ‘</a>’);
$name = extstres($dodol, ‘<img title=”‘, ‘”‘);
$id = extstres($dodol, ‘qlicon=”‘, ‘”‘);
$getimg = extstres($res, ‘<img title=”‘, ‘qlicon’);
$img = extstres($getimg, ‘”http://i’, ‘”‘);
$img = ‘http://i’ . $img;
// echo $getimg;
$gettime = extstres($res, ‘<span id=”video-run-time’, ‘/span>’);
$runtime = extstres($gettime, ‘>’, ‘<‘);
$res = strstr($res, ‘<div class=”video-clear-list”></div>’);
if ($name == ”)
{
$nomsg = $nomsg + 50;
}
else
{
++$hitung;
include ENGINE_DIR . ‘/mp3/video_template.php’;
}
++$i;
}
}
?>
I Using free hosting
Please help..
Thank U