Sonuç ve boş domaine işlem yapmak
<?php
function checkDomain($domain,$findText){
$URL="http://www.easydomaincheck.com/whois.php?domain=" . urlencode($domain) ;
if($file = fopen($URL, "rb"))
{
$reply='';
while (!feof($file)) $reply .= fgets( $file );
fclose($file);
if (strpos($reply, $findText)){
return true;
}
else {
return false;
}
}else {
return false;
}
}
function showDomainResult($domain,$findText,$uzanti){
if (checkDomain($domain,$findText)){
echo '<tr><td>' .$domain.'</td><td>UYGUN</td><td><a href="?=' . $domain . '&uzanti=' . $uzanti . '">HEMEN AL</a></td></tr>';
}
else echo "<tr><td>" . $domain . "</td><td>UYGUN DEĞİL!</td><td></td></tr>";
}
?>
Sorgu sonucu
<?php
if (isset($_GET['mode']) && $_GET['mode']=='sorgu'){
$domainbase = (isset($_POST['domainname'])) ? formatSQL($_POST['domainname']) : '';
if (strlen($domainbase)>2){
?>
<?php
$result = mysql_query("UZANTI TABLOSY");
while($row = mysql_fetch_array($result))
{
if(isset($_POST[dbOut($row['name'])]) || (isset($_POST['all'])))
{
showDomainResult($domainbase."." . dbOut($row['name']) ,'No match for',dbOut($row['name']));
}
}
?>
<?php
}
}
?>
Domain sorgu
<?
$i=1;
$result = mysql_query("UZANTI TABLOSU");
while($row = mysql_fetch_array($result))
{
?>