"; while (($file = readdir($dh)) !== false) { if ($file != "." && $file != "..") { echo "
  • " . $file . "
  • "; } } echo ""; closedir($dh); } } else { echo "指定的目录不存在或无法访问。"; } ?>