arkadaşlar bende Plesk Hosting sistemine kurdum Sorunsuz çalışıyor Fakat izlenen klip titleye gelmiyor bunun sebebi ne olabilir sizce hiçbir yeriylede oynamadım hosting ile alakası olabilirmi
Php proxyli Youtube video arama ve izleme scripti :)
246
●29.620
- 10-02-2010, 22:48:13
<? $w=$_GET['w']; $a=$_GET['a']; ?> <? require_once('ayar.php'); mysql_connect($CFG['db_host'], $CFG['db_user'], $CFG['db_pass']) or die(mysql_error()); mysql_select_db($CFG['db_name']); $varmi=mysql_num_rows(mysql_query("Select * from etiket where video='$w'")); if($varmi): mysql_query("UPDATE etiket SET hit=hit+1 WHERE video='$w'"); else: mysql_query("INSERT INTO etiket SET video='$w', hit=1, adi='$a', tarih=NOW()"); endif; ?> <!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="tr"> <head>
Bu kodu İndex.php'de En üste Yapıştırdığımda İzlenilen Video ismi Titlede Çıkıyor Ama Aranılan kelime Hala Çıkmıyor titlede victories Hocam Sizce Nasıl Çözebilirim Bu olayı... Lütfen yardım ediniz..
burdan
Buda orjinal Demo - 10-02-2010, 23:00:05Üyeliği durdurulduindex.php nin içeriğini komple buraya yazarmısın?uzaksevgilim adlı üyeden alıntı: mesajı görüntüle
- 10-02-2010, 23:01:39victories hocam tşekürler... chatlakturk bu konuda yardımcı olacağını umuyorum fakat cvp vermiyor Fazla rahatsız ettik galiba
- 10-02-2010, 23:09:14Üyeliği durdurulducevap veriyorumda birde sen görsenuzaksevgilim adlı üyeden alıntı: mesajı görüntüle

<? $w=$_GET['w']; $a=$_GET['a']; ?>
bunu
<? $w=$_GET['w']; $a=$_GET['a']; $s=$_GET['s']; ?>
bununla değiştirirmisin. - 10-02-2010, 23:09:50
<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?=$s ?><?=$a ?> videosu, video sitesi, youtube izle, youtube video izle, video izle, youtube videoları izle, youtube proxy</title> <meta name="description" content="<?=$s ?><?=$a ?> Youtube video izle, youtube izle, video izle, youtube videoları izle, youtube proxy, video sitesi"> <meta name="keywords" content="<?=$s ?><?=$a ?> Youtube video izle, youtube izle, video izle, youtube videoları izle, youtube proxy"> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="main_content"> <div id="stylefour"> <ul> <li><a href="index.php" class="nav">ana sayfa</a></li> <li><a href="#" class="nav">hakkımızda</a></li> <li><a href="etiketler.php" class="nav">etiketler</a></li> <li><a href="izlenenler.php" class="nav">izlenenler</a></li> <li><a href="#" class="nav">iletişim</a></li> </ul> </div> <div id="top_banner"> <a href="index.php"><img src="images/logo.jpg" width="230" height="130" alt="home" title="logo" border="0" class="logo" /></a> </div> <div id="page_content_left"> <div class="orta"> <form action="index.php" method="get" name="arama"> <table border="0" width="100%"> <tbody><tr> <td align="left" height="89" width="85%"> <input type="text" name="s" class="urlinput" value="şarkı ismi yazın.." onfocus="if(this.value=='şarkı ismi yazın..')this.value='';this.select();" onblur="if(this.value=='')this.value='şarkı ismi yazın..';" /></td> <td width="15%"><input src="tema/ara.gif" value="Git" class="submitbutton" type="image"></td> </tr> </tbody></table></form> </div> <div class="content_text"> <? $q = $_GET['s']; $w = $_GET['w']; $a = $_GET['a']; require_once('ayar.php'); if($q){ $q = ereg_replace('[[:space:]]', '+', trim($q)); $old=array("ş","Ş","Ğ","ğ","İ","ı","Ç","ç","Ö","ö","Ü","u" "'" ); $new=array("s","s","g","g","i","i","c","c","o","o" ," " ); //$q = str_replace( $old, $new, $q ); $i = 100; if(!$_GET['p']) $_GET['p']=1; $start=((intval($_GET['p'])-1)*50)+1; $feedURL = "http://anonymouse.org/cgi-bin/anon-www.cgi/http://gdata.youtube.com/feeds/api/videos?q=".urlencode($q)."&orderby=rating&max-results=20&start-index=".$start; $varmi=mysql_num_rows(mysql_query("Select * from tags where tag='$q'")); if($varmi): mysql_query("UPDATE tags SET hit=hit+1 WHERE tag='$q'"); else: mysql_query("INSERT INTO tags SET tag='$q', hit=1"); endif; // read feed into SimpleXML object $sxml = @simplexml_load_file(($feedURL)); //$sxml = mb_convert_encoding((string) $sxml , 'UTF-8' , 'ISO-8859-9'); // get summary counts from opensearch: namespace $counts = @$sxml->children('http://a9.com/-/spec/opensearchrss/1.0/'); $total = $counts->totalResults; $startOffset = $counts->startIndex; $endOffset = ($startOffset-1) + $counts->itemsPerPage; echo '<ul class="results">'; foreach ($sxml->entry as $entry) { // get nodes in media: namespace for media information $media = $entry->children('http://search.yahoo.com/mrss/'); // get video player URL $attrs = $media->group->player->attributes(); $watch = $attrs['url']; $watch=str_replace('http://www.youtube.com/watch?v=','index.php?w=',$watch); $kod1=str_replace('index.php?w=','',$watch); $kod=str_replace('&feature=youtube_gdata','',$kod1); // get video thumbnail $attrs = $media->group->thumbnail[0]->attributes(); $thumbnail = $attrs['url']; // get <yt:duration> node for video length $yt = $media->children('http://gdata.youtube.com/schemas/2007'); $attrs = $yt->duration->attributes(); $length = $attrs['seconds']; $mins = floor ($length / 60); $secs = $length % 60; // get <gd:rating> node for video ratings // $gd = $entry->children('http://schemas.google.com/g/2005'); if ($gd->rating) { $attrs = $gd->rating->attributes(); $rating = @$attrs['average']; } else { $rating = 0; } // print record //echo "<tr><td colspan=\"2\" class=\"line\"></td></tr>\n"; // echo "<tr>\n"; // echo "<td><a href=\"{$watch}\"><img src=\"$thumbnail\"/></a></td>\n"; // echo "<td><a href=\"{$watch}\"> if ($tip=='muzik'){ echo '<li><a href="'.trsil($kod).'-'.trsil($media->group->title).'.html">'; echo $media->group->title.' - '. $mins.':'.$secs .'</a></li>'; }else{?> <div class="video_item"> <div class="video_item_img"><a href="<?=$kod.'-'.trsil(trim($media->group->title)).'.html'?>" title="<?=$media->group->title.' izle'?>"><img src="<?=$thumbnail?>" alt="<?=utf8_duzelt($media->group->title);?>" width="120" height="90" /></a> </div> <div class="video_item_data"> <a href="<?=$kod.'-'.trsil(trim($media->group->title)).'.html'?>" title="<?=$media->group->title.' izle'?>"><?=$media->group->title;?></a> </div> </div> <? //echo '<table cellspacing="10" background="tema/arka.png" width="470" height="150" border="0" cellpadding="0">'; //echo '<tr>'; //echo '<td width="18%"><a href="'.$watch.'"><img src="http://i.ytimg.com/vi/'.$kod.'/0.jpg" width="120" height="120" border="0"/></a></td>'; //echo '<td width="82%"><a href="'.$watch.'&a='.$media->group->title.'"><font color="navy">'.$media->group->title.'</font></a></td>'; //echo '</tr>'; // echo '</table>'; // echo '<li><a href="'.$watch.'">'; // echo $media->group->title.' - '. $mins.':'.$secs .'</a></li>'; } } $next=intval($_GET['p'])+1; $prev=intval($_GET['p'])-1; echo '<div class="clear"></div><li>'; if(intval($_GET['p'])>1){ echo '<a href="?s='.urlencode($q).'&p='.$prev.'">'; echo '«« önceki sayfa</a> '; } echo '<a href="?s='.urlencode($q).'&p='.$next.'">'; echo 'sonraki sayfa »»</a></li>'; echo '</ul>'; } else if($a=="about") { ?> ---<? } else if($a=="international") { ?>--- <? } else if($a=="yourself") { ?> --- <? } else if($w) {?> <iframe id="player" scrolling="no" allowtransparency="true" style="border:0;background-color:transparent;width:600px;height:610px" src="player.php?w=<?=$w ?>&a=<?=$a ?>" frameborder="0"></iframe><script type="text/javascript">document.getElementById("player").allowTransparency = true;</script> <?}else {?> <?} ?> </div> </div> <div id="page_content_right"> <div class="title"> Arananlar </div> <div class="content_text"> <?php include_once ("tags.php");?> </div> <div class="more"> <img src="images/more.jpg" width="20" height="20" alt="more" title="more" border="0" class="more" /> <div class="link_more"><a href="etiketler.php"> Tüm Arananlar</a></div> </div> </div> <div id="page_bottom"> </div> </div> <div id="footer"> <div id="footer_content"> <div id="copyrights"> Quartz Solution.© All Rights Reserved 2007 </div> <div> <ul class="footer_menu"> <li><a href="http://www.konyasohbet.net" title="konya sohbet" class="nav2">konya sohbet</a></li> <li><a href="http://www.konyasohbet.net" title="konya chat" class="nav2">konya chat</a></li> <li><a href="http://www.cetci.net" title="canli sohbet" class="nav2">canli sohbet</a></li> <li><a href="http://www.gittin.net" title="turkce sohbet" class="nav2">turkce sohbet</a></li> </ul> </div> <div id="madeby"> <a href="http://www.csscreme.com"><img src="images/csscreme_link.jpg" width="125" height="40" border="0" alt="csscreme" title="csscreme"/></a><br /> <a href="http://validator.w3.org/check?uri=referer" title="This site is W3C compliant">Xhtml</a> <a href="http://jigsaw.w3.org/css-validator/validator?uri=www.csscreme.com&usermedium=all" title="This site is coded with validate CSS">css</a> </div> </div> </div> </body> </html>
Buyrun Hocam.. ftp'yide özel mesaj olarak yollaya bilirim.. Bunun Hosting ile Alakası ola bilirmi ? - 10-02-2010, 23:10:05uzaksevgilim
index.php dosyasında title kısmında <?=$s ?> yazar onu <?=$_GET['s'];?> olarak değiştir.
IntegraLL
Evet geliştirilebilir zira ben birazcık o konuda çaba gösterdim
sanırım sayfalamadan şikayetçisiniz şu adresteki demoya bakıp isteklerinizi söyleyebilirsiniz elimden geldikçe yardımcı olurum
Demo
Iyi çalışmalar..

