Re: readdir will haunt me for ever

From: Date: Tue, 15 Aug 2000 05:44:32 +0000
Subject: Re: readdir will haunt me for ever
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11744@lists.php.net to get a copy of this message
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 | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#11744) next »