棋子 发表于 2007-7-16 01:40:03

PHP简单分类列表

<?

//specify the directory path
$path = "../";

//open the directory
$dir = @opendir($path) or die("cannot open $path");

//read and show the result
while (false !== ($files = readdir($dir))) {
echo "$files<br>";
}

//close the directory
closedir($dir);

?>
页: [1]
查看完整版本: PHP简单分类列表