PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I've basically got a list of directories (in an array) which I want PHP to sort by the last modified/created time.
Any ideas?
PS: I've tried filectime too but I get the same (apparently) random ordering of directories. I know what the newest one is and it never even appears in the top 10.
I'll test it by making a folder right now and converting what stat brings back as it's unix timestamp to one I can read and see if it's correct. Don't think it works though.
Ok, Now I've started adding new folders to my parent directory it seems to read the newest ones as just that. But all the others seem to be just random. Oh, now I've got an idea what it might be.... I've changed the files within the folders prior to doing this and maybe it's reading that as a direactory modification....