I have a large collection of files I need to rename - but the PHP functions "copy" and "rename" are disabled on my server. Is there an alternative I can try?
Posted on 2008-10-19
I have a large collection of files I need to rename based on an ID number in my database. This would be extremly simple to do with a "rename" or "copy" function, but the server I am hosted with seems to have these two functions disabled. Is there another way of doing this through PHP? I don't know much about batch (DOS maybe?) files, but maybe there is a way that PHP could output some sort of batch script so I could rename my local files instead? I have XP Home, so unfortunatly I can't setup a local host and just run the PHP script on my own machine.