Re: [PHP] Very strange bug. Opendir/Readdir

2004-06-17 Thread Curt Zirzow
* Thus wrote Matt Richards ([EMAIL PROTECTED]): > Imagine the following: > > 362>class someClass { > 363> function someFunction() { > 364>if($rDirectory = opendir("/templates")) { > 365> while(false != ($strFile = readdir($srDirectory))) { Looks like a typo, you're assigning rDirectory

RE: [PHP] Very strange bug. Opendir/Readdir[Scanned]

2004-06-17 Thread Michael Egan
Matt, I've only just started to have a look at this. Having first tried to see if the code worked outside the class I was receiving the same error message but this might be attributable to line 365 including a reference to $srDirectory rather than $rDirectory. I'll carry on working with it. Re