【发布时间】:2012-01-21 21:15:10
【问题描述】:
我正在使用以下代码来获取目录中的图像列表:
$files = scandir($imagepath);
但$files 也包含隐藏文件。如何排除它们?
【问题讨论】:
-
这里的答案是关于 Linux 主机的。对于所有希望了解 Windows 托管的人,请参阅此处:http://stackoverflow.com/questions/30290663/does-php-scandir-exclude-hidden-files-under-windows
标签: php scandir hidden-files