最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

[PHP问题]Cannot redeclare xxxxxx() (previously declared in C:WWWxxx.xxx:xxx)

IT圈 admin 3浏览 0评论

[PHP问题]Cannot redeclare xxxxxx() (previously declared in C:\WWW\xxx.xxx:xxx)

今天碰到一个诡异的现象,用别人家的PHP程序报错,简单记录一下:

错误提示:

Cannot redeclare xxxxxx() (previously declared in C:\WWW\geoip.inc:xxx) in <b>C:\WWW\geoip.inc</b> on line <b>xxx</b><br />

错误原因:

这个问题是因为多次引用导致重复声明

解决方法:

1.看到报错的那个文件,这里是C:\WWW\geoip.inc

2.搜索引用 geoip.inc 的文件,找到:require  ("geoip.inc"); 这样子的语句,将其改为 require_once  ("geoip.inc");

3.重新访问测试,只要还报错就说明还有地方没改好
 

[PHP问题]Cannot redeclare xxxxxx() (previously declared in C:\WWW\xxx.xxx:xxx)

今天碰到一个诡异的现象,用别人家的PHP程序报错,简单记录一下:

错误提示:

Cannot redeclare xxxxxx() (previously declared in C:\WWW\geoip.inc:xxx) in <b>C:\WWW\geoip.inc</b> on line <b>xxx</b><br />

错误原因:

这个问题是因为多次引用导致重复声明

解决方法:

1.看到报错的那个文件,这里是C:\WWW\geoip.inc

2.搜索引用 geoip.inc 的文件,找到:require  ("geoip.inc"); 这样子的语句,将其改为 require_once  ("geoip.inc");

3.重新访问测试,只要还报错就说明还有地方没改好
 

发布评论

评论列表 (0)

  1. 暂无评论