opendir与readdir()真的不能读中文目录吗?
opendir(D:/php/php_setup_files/Apache2.2.11/htdocs/uploadfile/中文目录/...Warning: readdir() expects parameter 1 to be resource, boolean given in ...
PHP readdir() 函数
<?php $dir = "/images/"; // 打开目录,然后读取其内容 if (is_dir($dir)){ if ($dh = opendir($dir)){ while (($file = readdir($dh)) !==...
PHP: readdir - Manual
Example #2 列出当前目录的所有文件并去掉 . 和.. <?phpif ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($...