Posts: 88
Threads: 24
Joined: Jun 2011
Reputation:
0
OK, there are 1000+ account files in the uSers folder with different nick names.. Now my question is how do I loop through all of them without knowing the file's name? I am saying, look through all 1000 of them and check if the last sign in date is 3 months older that today's day and destroy the file? Is it possible to do that kind of thing?
Posts: 1,047
Threads: 23
Joined: Jun 2009
well since you are stuck with files now I recommend importing everything to a database or the easier method:
use y_files (******'s file plugin) , there is a function to get the directory listing as long as I remember, never used it though.
Posts: 6,129
Threads: 36
Joined: Jan 2009
There's an index number for each file in y_files in a directory IIRC, you can use it to loop through every file.