arkadaşlar site analiz sonuçlarını doğru göstermiyor kaynağı ne olabilir yardımcı olursanız sevinirim ?

<?php
header('X-Robots-Tag: noindex, nofollow');
include('../config.php');
include('../functions.php');

$url = ( isset($_POST['u']) AND preg_match('/^([da-z.-]+).([a-z.]{2,6})$/',$_POST['u']) ) ? $_POST['u'] : NULL ;

if ( empty($url) ) { die('<script>alert("Hatalı URL");</script>'); }

    
    $google_index = google_index_count($url);
    
    if ( $google_index === FALSE ) {
    
        $google_index = 'Hata oluştu! Yeniden deneyin.';
    
    } else {
    
        $google_index = number_format($google_index, 0, ",",".");
    
    }

?><script>

    $("#site_analiz .sutun1 .gi .count").html("<?php echo $google_index; ?>");
    
    $("#site_analiz .sutun1 .gi .link a").attr("href","https://www.google.com/search?q=site:<?php echo $url; ?>");

</script>


fonksiyon.php

function google_index_count($url) {

    $google_index_curl = curl('https://www.google.com.tr/search?q=site:'.$url,array(
        'header'    => TRUE,
        'getarray'    => TRUE,
        'referer'    => 'https://www.google.com.tr/'
    ));

    $google_index_curl_html = $google_index_curl['html'];
    
    if ( preg_match('/<div id="resultStats">(.*?)([0-9,]+)(.*?)</div>/',$google_index_curl_html,$m) ) {
    
        $outpot = str_replace(',','',$m[2]);
        
        settype($outpot,"integer");
        
        return $outpot;
    
    } elseif ( $google_index_curl['info']['http_code'] === 200 ) {
    
        return 0;
        
    } else {
    
        return FALSE;
    
    }

}




Sorun devam etmektedir.



Sorun Çözülmüştür.