【发布时间】:2017-02-05 16:29:51
【问题描述】:
标题不是更清晰,但问题容器更清晰。
我有这个代码:
if (!file_exists(**I_WANT_HELP_ON_THIS**)) {
header("Location: error.php");
}
我想检查以下文件( file1.txt - file2.txt - file3.txt - file4.txt - file5.txt )是否存在(但使用简单的代码).. 那么应该是什么 I_WANT_HELP_ON_THIS ?
我不想使用:
if (!file_exists('file1.txt')) {
header("Location: error.php");
}
if (!file_exists('file2.txt')) {
header("Location: error.php");
}
etc...
谢谢!
【问题讨论】:
标签: php