if(file_exists($ _SERVER ['DOCUMENT_ROOT']。“ /index.html”))回显'文件存在';
仅当文件的所有者和组设置为root:root时,才返回“文件存在”。如果我将其更改为hostingacc:psacln或hostingacc:psaserv,它将不再起作用。
请问有办法解决吗?
最佳答案
更改根所有者。
chown -r hostingacc:psacln .
关于php - PHP file_exists仅适用于root:root,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22860513/