Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/243.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP错误消息_Php - Fatal编程技术网

PHP错误消息

PHP错误消息,php,Php,当我试图在www.1dt.biz/shop上的商店里买东西时,出现以下错误 我想知道你是否能为我指出正确的方向,告诉我如何修复它 Deprecated: Function eregi() is deprecated in /home/1dt/web/shop/includes/functions/general.php on line 1090 Deprecated: Function eregi() is deprecated in /home/1dt/web/shop/includes/f

当我试图在www.1dt.biz/shop上的商店里买东西时,出现以下错误

我想知道你是否能为我指出正确的方向,告诉我如何修复它

Deprecated: Function eregi() is deprecated in /home/1dt/web/shop/includes/functions/general.php on line 1090

Deprecated: Function eregi() is deprecated in /home/1dt/web/shop/includes/functions/general.php on line 1090

Deprecated: Function eregi() is deprecated in /home/1dt/web/shop/includes/functions/general.php on line 1090

Deprecated: Function eregi() is deprecated in /home/1dt/web/shop/includes/functions/general.php on line 1090

Deprecated: Function eregi() is deprecated in /home/1dt/web/shop/includes/functions/general.php on line 1090

Warning: Cannot modify header information - headers already sent by (output started at /home/1dt/web/shop/includes/functions/general.php:1090) in /home/1dt/web/shop/includes/functions/general.php on line 33

假设该站点是您的,您应该停止使用已弃用的
eregi

使用preg\u match

您正在使用的
eregi
,已弃用(如警告所示)

最后一个警告是因为警告allready会发送一个标头,而您无法发送另一个标头

最佳选择:用preg变体替换eregi:

第二个最佳选项:将
error\u reporting
设置为不显示不推荐的错误。(
error\u reporting(E\u ALL^E\u DEPRECATED);
或类似的内容。)

您可以使用
@eregi()
来抑制来自该调用的警告


或者改用
preg\u match
,因为在PHP5.3中,
eregi
已被弃用eregi()已被弃用,您需要用preg\u match()替换该调用,或者更改警告以忽略弃用的函数(不推荐)。

您应该使用
preg\u match
,由于
eregi
已被弃用,并将被删除以下警告是由于在为时已晚(即,您已经回送了等)后尝试更改标头而引起的:


贬值警告显而易见,这里已经有很多答案。

真的吗?只是不要再使用
eregi()
(它已经被弃用多年了!)。使用
preg_*()
。请参阅phpmanual@davidt,您读过错误消息了吗?非常感谢您的帮助,我会继续的,有什么原因导致这些错误刚刚开始出现吗?该网站最近遭到黑客攻击,这可能与此有关吗?嗯,正如您在手册()中所读到的,该函数自5.3.0以来就被弃用了,因此最有可能的解释是您的php版本已更新。可能是系统管理员入侵后更新的?
Warning: Cannot modify header information - headers already sent by (output started at /home/1dt/web/shop/includes/functions/general.php:1090) in /home/1dt/web/shop/includes/functions/general.php on line 33