Hey Guys im trying solve a tricky issue. Currently i have a folderstructure like this:
uploads/Event-12/1234-Johne-Doe/[…] uploads/Event-32/1234-Johne-Doe/[…]
So there a many events with their own folder. Within there a subfolders which are named like the id of the user (1234) followed by first and lastname. You can see that Mr. John Doe has a folder in Event-12 and also in Event-32.
But what if John Doe change his name (for whatever reason…). So i have to rename all folders recursively otherwise all links gets broken.
How to do that with PHP. I can easily rename a folder at once by giving the correct path to it. Is there any nice solution to let PHP search for all matching directories?
Greetings.