Re: readdir will haunt me for ever
| From: | Chris | Date: | Tue, 15 Aug 2000 05:50:21 +0000 |
| Subject: | Re: readdir will haunt me for ever | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11745@lists.php.net to get a copy of this message | ||
I have tried full paths with and without trailing slashes. I beleive the
open dir is working as it is returning a resource ID.
I am getting no error messages and that is what is driving me crazy.
ckd
On Tue, 15 Aug 2000, David Robley wrote:
> On 14 Aug, Chris wrote:
> > Was wondering if there is a kernel level requirement for php4. Although
> > the readdir() function bug was worked out in php4pl2 I still cannot get it
> > to work properly. The directory opens and returns a resource ID on the
> > directory but readdir($onopen) fails.
> >
> > In fact any functions after the readdir fail to produce output.
> >
> > Is there a way to debug this.
> >
> > Chris
>
> What are you passing to opendir() as a directory name? I've found that
> there are potential problems with using say . to represent the current
> directory, as you can't be sure the current directory is what you want.
> Always use a 'real' path.
>
> If that's not the problem - what are the symptoms when readdir 'fails';
> any error messages?
>
> Cheers
> --
> David Robley | WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES | ùÀ69Û'
> =®x'ÿhttp://www.nisu.flinders.edu.au/
> AusEinet |
> http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>