how can I get a loop to stop when I've finally reached every possibility. how do I know when it's reached that level? any ideas?
Background: so I have this script I am trying to come up with for a means of a storage issue I am having revolving around files in directories and there being to many in a given directory. that its putting excess load on the machine and render times overall when scripts check to see if a file exists. so I am overall trying to come up with a method of storage to break it down some which involves directories inside of directories inside of directories that literally have all the possible letter number combinations of a string that's currently 6 char large maybe more but I have to crunch some numbers first, anyway I'm trying to think of a fast sane way to provide a given length to something in this case 6 letters or numbers and have it generate an array of every combination a-z and 0-9 of that length problem is I can't think of away to generate that array so I'm hoping someone can help me out here.
I've come up with a method of generating img the random string of what ever length I choose but and putting them into an array isn't so tough but coming up with a method for the stopping point has me.