- 25 Haz 2018
- 82
- 0
- 6
Merhaba arkadaşlar
Örnek olsun diye sizinle basit alexa sorgulama ve sıra bulucu nasıl kodlanır paylaşımını yapıcam.
Kendi projelerinizde kullanabilirsiniz.
İndir files rar
Örnek olsun diye sizinle basit alexa sorgulama ve sıra bulucu nasıl kodlanır paylaşımını yapıcam.
Kod:
<?php error_reporting(0) ?>
<!DOCTYPE html>
<html>
<head>
<title>Link Kontrol</title>
<style type="text/css">
body {
background-color:#ccc;
}
</style>
</head>
<body>
<?php
if (isset($_POST['link'])) {
$lnk=@$_POST['lnk'];
$lnki=@$_POST['lnki'];
$a=file_get_contents("http://$lnk");
preg_match_all("@$lnki(.*?)</a>@si", $a, $b);
$c=implode("<br><a href=\" ", $b[0]);
$d=$c;
if(!empty($d)){echo "<br>"; echo "<div align='center'><font color=green size=5>$lnk sitesinde $lnki linkiniz bulunuyor. </font></div>"; echo"<br><div align='center'><font color=white size=4>Kelimeler:<br> <a href=\"$c</a> </font></div>";}else{echo "<br>"; echo"<div align='center'><font color=green size=5><font color=red size=5>$lnk sitesinde $lnki linkiniz bulunmuyor.</font></div>";}
}
//alexa
if (isset($_POST['test'])) {
$url = $_POST['url'];
$alexa = simplexml_load_file('http://data.alexa.com/data?cli=10&url='.$url);
$globalRank = number_format( (int) $alexa->SD->POPULARITY['TEXT'] );
$countryCode = $alexa->SD->COUNTRY['CODE'];
$countryName = $alexa->SD->COUNTRY['NAME'];
$countryRank = number_format( (int) $alexa->SD->COUNTRY['RANK'] );
print "<div align='center'><font color=green size=4>";
print "Global Rank:".$globalRank."<br >";
print "Ülke:".$countryName.":"."Rank:" .$countryRank;
print "</font></div>";
}
// alexa end
?>
<div align="center">
<form action="" method="post">
<font color=red>Taranacak url:</font> <!-- siteleri eklerken site.com olarak <option> arasına </option> ekleyiniz-->
<select name="lnk">
<option>webmastersitesi.net</option>
<option>google.com</option>
</select>
<font color=red size="2">Aranacak url:</font>
<select name="lnki">
<option>fullfilmizleyin.org</option> <!-- siteleri eklerken siteniz.com olarak <option> arasına </option> ekleyiniz-->
</select>
<input type="submit" name="link" value="Kontrol Et">
</form>
<br>
<font color=red size="2">Liste dışı kontrol</font>
<form action="" method="post">
<input type="text" name="lnk" placeholder="site.com">
<br>
<input type="text" name="lnki" placeholder="siteniz.com">
<br>
<input type="submit" name="link" value="Kontrol Et">
</form>
<br>
<font color=red size="2">Alexa Sorgula</font>
<form action="" method="POST" >
<input type="text" name="url" placeholder="site.com" />
<input type="submit" value="Sorgula" name="test" />
</form>
<hr>
</div>
</body>
</html>
İndir files rar