Ben bu scripti bir türlü çlıştıramadım.
Video linkni giriyorum ama hiç bir gelişme olmuyor.
2 ayrı hostta denedim gene başarısız oldum.
saten scriptte 2 adet kod dosyası bulunuyor yardım edebilirmisiniz ?
İndex dosyası
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>Youtube Video Download & Converter Script - My Video Downloader & Video Converter</title>
<meta name="keywords" content="Youtube video download script, video content site, download youtube video, download videos, download youtube videos, youtube script, video software, web video builder, video portal, create your own video site, niche video site, " />
<meta name="description" content="Youtube video download script : Video Download Site Script - The best video download script you will ever find! Utilize our powerful web based video download service to Save YouTube videos directly to your computer. You no longer need to fear losing your favorite videos that are deleted from YouTube. " />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="730" cellpadding="5" align="center"><tr><td>
<table width="650" cellpadding="0"><tr><td>
<a href="index.php"><img src="images/MyVideoDownloader.jpg" alt="Logo" title="Logo" border="0" /></a>
</td><td align="right">
<!-- AddThis Bookmark Button BEGIN -->
<script type="text/javascript">
addthis_url = location.href;
addthis_title = document.title;
addthis_pub = 'YOURUSERNAMEHERE';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<!-- AddThis Bookmark Button END -->
</td></tr></table>
<br />
<table width="650" class="table_style" align="center" cellpadding="5">
<tr>
<td style="background-color:#CCFFCC; background-image: url(images/background-tab.jpg);" align="left">
<h5><b>Enter the Direct YouTube URL to Download a Video</b></h5>
</td>
</tr>
<tr>
<td>
<br />
<form name="form" method="post" action="index.php">
<input type="text" name="u" size="48" value="<?=$u?>" />
<input type="submit" name="search_query_btn" value="Download Video" /> <input type="checkbox" name="preview" value="1" checked="checked" /></form>
<small>Show Video</small>
<br /><br />
<font size="1"><b>Example</b> : http://youtube.com/watch?v=NLlGopyXT_g</font>
</td>
</tr>
</table>
<? if ($u) { ?>
<br />
<table width="650" class="table_style" cellpadding="5" align="center"><tr>
<? if ($preview) {
$u1 = explode("=", $u);
$u2 = $u1[1];
?>
<td>
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/<?=$u2?>&rel=1&autoplay=1"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/<?=$u2?>&rel=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
</object>
</td>
<? } ?>
<td valign="top" align="center">
<div align="center">
<img src="images/download.jpg" alt="Download This Video" title="Download This Video" />
<br />
<?
// load the script
require_once('inc/youtube.inc.php');
?>
<br />
<small>
(<b>.flv</b> - Low Quality)
<br />
<a href="<?=ytddlurl($u2, "34")?>"><b>>> Download Video <<</b></a>
<br /><br />
(<b>.mp4</b> - High Quality)
<br />
<a href="<?=ytddlurl($u2, "18")?>"><b>>> Download Video <<</b></a>
<br /><br />
(<b>.3gp</b> - For Mobiles)
<br />
<a href="<?=ytddlurl($u2, "17")?>"><b>>> Download Video <<</b></a>
</small>
</div>
</td></tr></table>
<? } ?>
<br /><br />
<center><h1><font color="#CC6633"><b>Run Your Own YouTube Video Download Service<br />Just Like This One For FREE!</b></font></h1></center>
<br /><br /><br />
<table width="650" class="table_style" align="center" cellpadding="5">
<tr>
<td style="background-color:#CCFFCC; background-image: url(images/background-tab.jpg);" align="center">
<b><font color="#3399CC">My Video Downloader PHP Script Features
& Benefits</font></b> </td>
<td style="background-color:#CCFFCC; background-image: url(images/background-tab.jpg);" align="center"> </td>
</tr>
<tr>
<td>
<ul>
<li><b>Run your own YouTube Video Download WebSite</b>... with
less time and effort than it takes to build a plain old static
HTML site, you can have a viral service that people bookmark
and share like crazy!<br /><br /></li>
<li>Provide a much needed and <b>highly desired online video
download service</b><br /><br /></li>
<li>Social Bookmarking Functionality Built In to <b>Increase
the amount of visitors that Bookmark & Re-Visit Your Website<br />
</b><br /><br /></li>
<li><b>Super-Easy Installation & Integration</b>, just a few
clicks and you're done. Period. ...And we show you where to
click.<br /><br /></li>
<li>No Database Needed... <b>Just Upload, Customize & Watch
Your Website Traffic & Popularity Explode!</b></li>
<li>Automatic .FLV to .MP4 Convertion direct from the YouTube
Servers<br /><br /></li>
<li>The MyVideoDownloader Web-Based YouTube Online Video Download
Service is very unique because there is no software to download
or install for your website visitors, simply a direct video
download link (.flv or .mp4) using a simple web form from
your website.<br /></li>
</ul>
</td>
<td valign="top"> <br />
<table class="table_style" align="center" cellpadding="5" width="100%">
<tr>
<td style="background-color:#CCFFCC; background-image: url(images/background-tab.jpg);" align="center">
<b><font color="#3399CC">Download Free Version</font></b></td>
</tr>
<tr>
<td>
<div align="center">
<a href="MyVideoDownloaderV1.zip"><img src="images/download.jpg" alt="Download This Script" title="Download This Script" border="0" /> <br />
<b>MyVideoDownloaderV1.zip</b></a>
<br /><br />
</div>
</td>
</tr>
</table>
<br />
<br />
<table class="table_style" align="center" cellpadding="5" width="100%">
<tr>
<td style="background-color:#CCFFCC; background-image: url(images/background-tab.jpg);" align="center">
<b><font color="#3399CC">Purchase Full Version</font></b></td>
</tr>
<tr>
<td>
<div align="center"> <br />
<b>Remove the "Powered By WebDesignHQ" link : <br />
<br />
<font color="#FF0000">Only $49</font></b> <br />
<br />
<br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" />
<img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHXwYJKoZIhvcNAQcEoIIHUDCCB0wCAQExggEwMI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NvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDgwNzE2MjMwOTQwWjAjBgkqhkiG9w0BCQQxFgQUUxklT1O7h/y06XINXH5IlJVX7P0wDQYJKoZIhvcNAQEBBQAEgYCuy6viaxcDkyh6b2VEAqKdGjhni6wNk1AZsQ1blC5EavJCIqZzj/0tar4a4YiIA7YWH2l60mW1cJHP/O6esW88khFXAD0oWdpta7II19SyQUI1qJ1oM8YgIUgvkikdTFrD//VaTSnSbttQBkjtTElIaGYVw5q4XySdlBiuxyYeeQ==-----END PKCS7-----
" />
</form>
<br />
<br />
<br />
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<!-- YOU MUST NOT REMOVE THIS LINK TO WebDesignHQ.com WITHOUT PURCHASING A LICENSE-->
<div align="center">
<small>© 2008 MVD (MyVideoDownloader)
<br />Powered by : <a href="http://www.webdesignhq.com/" target="_blank">WebDesignHQ.com</a>
<br />
Re-Programmed by : <a href="http://www.decodethe.net/" target="_blank">DecodeThe.Net</a></small>
</div>
<!-- YOU MUST NOT REMOVE THIS LINK TO WebDesignHQ.com WITHOUT PURCHASING A LICENSE-->
<br />
</td></tr></table>
</body>
</html>2.dosya
<?php
/************************************************************************************
Script Name : Youtube Downloader 0.5
Function : To show path into FLV files located at Youtube.com
Creator : TrioxX (1337@DecodeThe.Net, http://decodethe.net)
Created date : April 5, 2007 (0.1) - read HTML and parse the string
March 3, 2008 (0.3) - shot the SWF and read the header
April 15, 2008 (0.4) - shot the SWF and read the header and let the T string remain
May 5, 2009 (0.5) - complete re-design of the function
Requirement : PHP with CURL
Note:
This is a basic functions used to show real URI of FLV files at youtube.com so we can
download the file and play it offline.
Disclaimer:
You use it at your own risk. You can ask me question about this script but you shouldn't
ask me about any damaged computer caused by this script.
************************************************************************************/
// ------------------------------------ START SCRIPT --------------------------//
function curl_run($url)
{
$useragent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1";
$header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$header[] = "Accept-Language: en-us,en;q=0.5";
$curl = curl_init();
curl_setopt($curl,CURLOPT_USERAGENT, $useragent);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl,CURLOPT_URL, $url);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
$exec = curl_exec($curl);
curl_close($curl);
return $exec;
}
function ytddlurl($videoid, $fmt)
{
$response = curl_run("http://".gethostbyname("www.youtube.com")."/watch?v=".$videoid);
if (preg_match_all("/&t=[^&]*/", $response, $matches))
{
$t = $matches[0][0];
$t = preg_split("/=/", $t);
$t = $t[1];
$youtubeVideoPath = "http://".gethostbyname("www.youtube.com")."/get_video.php?video_id=".$videoid."&t=".$t."&fmt=".$fmt;
$headers = get_headers($youtubeVideoPath,1);
if(!is_array($headers['Location']))
{
$url = $headers['Location'];
}
else
{
foreach($headers['Location'] as $h)
{
if(strpos($h,"googlevideo.com")!=false)
{
$url = $h;
break;
}
}
}
}
return $url;
}
// ------------------------------------ END SCRIPT --------------------------//
?>