Redian新闻
>
a PERL opendir/readdir question
avatar
a PERL opendir/readdir question# Programming - 葵花宝典
b*c
1
我的机器装的是winxp 32
我搜了一下, 好多人建议如下
大家帮我看看..可以吗
Apache: 2.0.59
PHP: 4.4.7 Win32
MySQL: 4.1.22
avatar
h*r
2
Here is what is the directory:
-bash-3.00$ ls -al
total 7
drwxr-xr-x 5 x student 512 Aug 14 16:54 .
drwx------ 11 x student 3072 Aug 14 16:55 ..
-rw-r--r-- 1 x student 0 Aug 14 16:54 a.txt
drwxr-xr-x 5 x student 512 Aug 14 14:55 blackHole
-rw-r--r-- 1 x student 0 Aug 14 16:54 b.xml
drwxr-xr-x 2 x student 1024 Aug 14 16:42 coloring
drwxr-xr-x 11 x student 512 Aug 14 14:55 composed
As you can see, there are THREE directories and TWO normal files. I want to
process all of them.
avatar
e*x
3
PHP4官方已经不再支持了。建议用PHP5
MySQL新的版本应该是5.x

【在 b*******c 的大作中提到】
: 我的机器装的是winxp 32
: 我搜了一下, 好多人建议如下
: 大家帮我看看..可以吗
: Apache: 2.0.59
: PHP: 4.4.7 Win32
: MySQL: 4.1.22

avatar
t*t
4
quote perldoc -f readdir:
If you’re planning to filetest the return values out of a
"readdir", you’d better prepend the directory in question.
Otherwise, because we didn’t "chdir" there, it would have been
testing the wrong file.
end quote
avatar
b*c
5
收到
明天找新版本吧:)

【在 e******x 的大作中提到】
: PHP4官方已经不再支持了。建议用PHP5
: MySQL新的版本应该是5.x

avatar
h*r
6
thanks. This helps.

【在 t****t 的大作中提到】
: quote perldoc -f readdir:
: If you’re planning to filetest the return values out of a
: "readdir", you’d better prepend the directory in question.
: Otherwise, because we didn’t "chdir" there, it would have been
: testing the wrong file.
: end quote

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。