<BODY> <!-- Use PHP to print the
name of the directory you read --> <P>Files in: <? echo $dir_name;
?></p> <!-- Use PHP to print the directory listing --> <? echo
$file_list; ?> </BODY> </HTML>
这时已经有了一个目录列表。需要记住,要读取目录或文件(马上你会见到)中的内容用户所在的PHP运行平台必须至少对目录或文件有read权限。