Cetin,
All I'm saying is that adir() on a very large folder definately throws a 31 error, if you didn't want to run the specific test Sergey was asking you to run. My post wasn't really meant to address any of the other issues brought up in the thread.
>Oh, are you too saying that it is impossible to get "too many variables" error with an array that has over 65000 elements? If so please read other posts. In one of them already demonstrated the error and attached a shot as an evidence. I don't know why Sergey insisted on narrowing this thing to adir(). IMHO adir() giving another message doesn't remove the fact that array -despite being a single variable itself- can be the source of this error (and that was my point as clearly can be seen in my original post if one doesn't intentionally want to interpret it other way). If it should be interpreted that way in English then OK I stand corrected. You are right.