小编Co *_*...的帖子

file_exists()或is_readable()

如果要包含PHP文件,应该使用哪一个?

if(file_exists($file) require "$file";
Run Code Online (Sandbox Code Playgroud)

要么

if(is_readable($file) require "$file";
Run Code Online (Sandbox Code Playgroud)

php require include file-exists

27
推荐指数
4
解决办法
1万
查看次数

标签 统计

file-exists ×1

include ×1

php ×1

require ×1