gudaochao
新手上路

UID 79718
精华
0
积分 4
帖子 15
金钱 4 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-9-7 来自 中国
状态 离线
|
请教一个程序的问题?
<?PHP
$base_dir = "aaaa.txt";
$fso = opendir($base_dir);
echo $base_dir."<hr/>" ;
while($flist=readdir($fso)){
echo $flist."<br/>" ;
}
closedir($fso)
?>
其中aaaa.txt是在当前目录下,为什么会报:
Warning: opendir(D:\htdocs\aaaa.txt) [function.opendir]: failed to open dir: Invalid argument in D:\htdocs\mulu.php on line 3
D:\htdocs\aaaa.txt
Warning: readdir(): supplied argument is not a valid Directory resource in D:\htdocs\mulu.php on line 5
Warning: closedir(): supplied argument is not a valid Directory resource in D:\htdocs\mulu.php on line 9
请高手指点!!!
|
|