I have a requirement to move (not copy) files on my server on a regular basis - but also to change the filenames of the files as I move them. For example, I have this:
and I need to move it to here:
/mysite/public_html/publishmedia/yyyymmddhhmmss.jpg - where yyyy=year, mm=month, dd=day etc.
Is this easy to do with a php script? Running this script on a regular basis would be easy enough via a cron job (I guess?) but for the actual script, I have to admit I don't really have much of an idea (as any regulars who have spotted my posts before will testify ). If someone could point me in the right direction, I would be extremely grateful for the push.