php file_exists文件在,但是用if判断怎么显示不存在啊 大家帮我看看错在什么地方,

2025-03-21 23:25:52
推荐回答(1个)
回答(1):

现在你用amp,文件路径用
$this->file="d:\\amp/apache/htdocs/qinghaiyan/qinghaiyan/json/renshu.json";
if(!file_exists($this->file)) {....}

在真正的server用$this->file="http://qinghaiyan.com/....