Writing PHP for the first time in well over a year. I need to move thousands of photographs on the Mac and automatically sort them into folders by their created date. In the past I used complex apps to do this. Turns out a few lines of code is all I need.