为什么用opendir打开目录用户require

[复制链接]
查看11 | 回复3 | 2021-1-27 06:28:52 | 显示全部楼层 |阅读模式
谢谢大神帮忙看看错在那里
错误提示代码:
(!)Fatalerror:Cannotdeclareclasslogincheckentry,becausethenameisalreadyinusein'd:/web/system/autofile/logincheckentry.phponline15


加载的文件logincheckentry.php
classlogincheckentry{
function__construct(){
$this->index();
}
functionindex()
{
echo"加载成功";
}
}


分 -->
回复

使用道具 举报

千问 | 2021-1-27 06:28:52 | 显示全部楼层
Cannotdeclareclasslogincheckentry,becausethenameisalready
是说类logincheckentry的定义已经存在了
同名类不能多次定义,这是基本规则
回复

使用道具 举报

千问 | 2021-1-27 06:28:52 | 显示全部楼层
你是不是多次加载了这个文件啊
回复

使用道具 举报

千问 | 2021-1-27 06:28:52 | 显示全部楼层
你那判断只写一个等号,肯定了。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行