看来服务器上的这个文件是真的不存在哦
<?php$filename = '/data/webroot/usercode/code/resource/test.txt';
//判断如果$filename文件存在的话 就输出文件内容
if(file_exists($filename)) {
echo "文件存在";
}
else {
echo "文件不存在";
}结果是不存在
<?php$filename = '/data/webroot/usercode/code/resource/test.txt';
//判断如果$filename文件存在的话 就输出文件内容
if(file_exists($filename)) {
echo "文件存在";
}
else {
echo "文件不存在";
}结果是不存在
2018-07-14
举报