//********viewdir.php//********<html><head><title>查看服务器端目录和文件</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body bgcolor="#FFFFFF" text="#000000"><form name="form1" method="post" action="<?php echo $PHP_SELF; ?>">
<font color="#006633">输入目录名: </font>
<input type="text" name="InputDirRoot">
<input type="submit" name="Submit" value="查看该目录内容"></form><hr><?php$n = 0;if ($REQUEST_METHOD=="POST"){