Facebooktan Video İndirme Scripti ( PHP )
109
●13.907
- 05-11-2009, 17:23:13Üyeliği durduruldugoldweb adlı üyeden alıntı: mesajı görüntüleFBI adlı üyeden alıntı: mesajı görüntüleRica ederim arkadaşlar.Silvers adlı üyeden alıntı: mesajı görüntüle
- 06-11-2009, 15:27:52Üyeliği durdurulduMsn Ve Şifre Bilgilerini Girdikten Sonra Hata Verdi Nasıl Düzelte Bilirim
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\siteismi\httpdocs\facebook\Index .php:1) in C:\Inetpub\vhosts\siteismi\httpdocs\facebook\Index .php on line 1 - 06-11-2009, 16:00:34Üyeliği durdurulduindex.php de ilk satırdaisyankar24 adlı üyeden alıntı: mesajı görüntüle
<?PHP header('Content-Type: text/html; charset=UTF-8');?>bu kod var normalde en üst satırda öncesine boşluk veya karakter koymadan eklediğinizde sorun olmaması lazım.
ama yinede sorun yaşıyorsanız o ilk satırı silebilirsiniz. - 06-11-2009, 17:29:10Üyeliği durduruldubende anlamadım ki deniyorum bazen buluyo videoyu bazen bulmuyor.isyankar24 adlı üyeden alıntı: mesajı görüntüle
Düzeltme:
Kullanıcı adı şifreyi girmeden denemişim
Sorunsuz çalışıyor şuan benimki.
birde şöyle dene istersen
index.php
<?PHP header('Content-Type: text/html; charset=UTF-8');?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META http-equiv=content-type content=text/html;charset=UTF-8> <title>facebook video sitesi, face video izle indir, face indir, video izle, facebook video indir</title> <meta name="description" content="facebook video indirme sitesi, face video izle indir, face indir, video izle, facebook video indir"> <meta name="keywords" content="facebook video sitesi, face video izle indir, face indir, video izle, facebook video indir"> <link href="tema/chatlak.css" rel="stylesheet" type="text/css"> </head> <body> <div class="ust"><table border="0" width="100%"> <tbody><tr> <td align="left" height="85" width="19%"><a href="/"><img src="tema/logo.gif" border="0"></a></td> <td align="center" width="81%"> </td> </tr> </tbody></table> </div> <center> <div class="reklam"> <div class="rek"><script type="text/javascript"><!-- google_ad_client = "pub-1103893102191160"; /* 468x60, face */ google_ad_slot = "4313499776"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> </div><p> </p><div class="orta"> <form action="index.php" method="post" name="arama"> <table border="0" width="100%"> <tbody><tr> <td align="left" height="89" width="85%"> <input type="text" name="vlink" class="urlinput" value="video linkini yazın.." onfocus="if(this.value=='video linkini yazın..')this.value='';this.select();" onblur="if(this.value=='')this.value='video linkini yazın..';" /></td> <td width="15%"><input src="tema/ara.gif" value="Git" class="submitbutton" type="image"></td> </tr> </tbody></table></form> </div> <div id="videolar"> <span style="color: #000000">Örnek video linki aşağıdaki şekildedir.<br><br><b>http://www.facebook.com/video/video.php?v=191742181101</b><br></span> <? $q = $_POST['vlink']; if ($q) { function f($bas, $son, $yazi) { @preg_match_all('/' . preg_quote($bas, '/') . '(.*?)'. preg_quote($son, '/').'/i', $yazi, $m);return @$m[1];} $url = addslashes($_POST['vlink']); $mail = 'mail adresin'; // bu bölümü unutma... $sifre = 'sifren'; // bu bölümü unutma... $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://login.facebook.com/login.php"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,'email='.urlencode($mail).'&pass='.urlencode($sifre).'&login=Login'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_COOKIEJAR,dirname(__FILE__)."/cookie.txt"); curl_setopt($ch, CURLOPT_COOKIEFILE,dirname(__FILE__)."/cookie.txt"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)"); curl_exec($ch); curl_setopt($ch, CURLOPT_URL, $_REQUEST['vlink']); curl_setopt($ch, CURLOPT_POST, 0); $data = curl_exec($ch); curl_close($ch); //echo $data."aaa"; $ver = f('video_src", "','"',$data); $resim = f('thumb_url", "','"',$data); echo '<br>';?> <form action="indir.php" method="post"> <input name="w" value="<?=urldecode($ver[0])?>" id="videoInput" type="hidden"> <input value="Download!" style="font-size:45pt; height: 100px; width:470px" type="submit"><br><p> </p> <iframe id="player" scrolling="no" allowtransparency="true" style="border:0;background-color:transparent;width:600px;height:450px" src="player.php?w=<?=urldecode($ver[0]) ?>&r=<?=urldecode($resim[0]) ?>" frameborder="0"></iframe><script type="text/javascript">document.getElementById("player").allowTransparency = true;</script><? } else if($w) {?> <iframe id="player" scrolling="no" allowtransparency="true" style="border:0;background-color:transparent;width:0px;height:0px" src="indir.php?w=<?=$w ?>" frameborder="0"></iframe><script type="text/javascript">document.getElementById("player").allowTransparency = true;</script> <?} else {?> <?} ?> </div> <div class="reklam"><div class="rek"><script type="text/javascript"><!-- google_ad_client = "pub-1103893102191160"; /* 468x60, face */ google_ad_slot = "4313499776"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div></div></div> <div id="footer"> <ul> <li><a href="http://www.konyasohbet.net" title="konya sohbet">konya sohbet</a></li> - <li><a href="http://www.konyasohbet.net" title="konya chat"> konya chat</a></li> - <li><a href="http://www.cetci.net" title="canli sohbet"> canli sohbet</a></li> - <li><a href="http://www.gittin.net" title="turkce sohbet"> turkce sohbet</a></li> </ul> <div> </center> </body> </html> - 06-11-2009, 19:51:38Gerçekten harika eline sağlık dostum yalnız index sayfasına kullanıcılar için bir kaç uyarı yazmamız gerekecek sanırım yoksa her video linki tutmuyor başka videolar çıkıyor
Mesela direk facede gördüğüm video linki
http://www.facebook.com/home.php?#/v...2269609&ref=nf
link içinde # ve son &ref=nf yazılarını silerek eklediğimizde sorun olmuyor.
Aksi takdirde alakasız bir video bulunuyor bununla ilgili bir iyileştirme söz konusu mu acaba?