renaming/moving FTP'ed files through web page
Posted: Wed Nov 08, 2006 5:02 pm
I have a group of files that is uploaded via FTP. Then, I run a script that is accessed through the admin section of my site. This script is supposed to look through the list of files, sort them out, and put them in appropriate directories. My FTP'ed files belong to the the user xxxadmin. Because of this, when I run my web script, I don't have permission to rename/move the file because the web script is running as the user www-data.
Can anyone help me out with a possible solution. I have considered trying to rename/move by connecting to the FTP (in my php script) and renaming/moving them in there, but would rather not have to fumble through code to make this happen. Does anyone have any other ideas or have ran into this before?
Can anyone help me out with a possible solution. I have considered trying to rename/move by connecting to the FTP (in my php script) and renaming/moving them in there, but would rather not have to fumble through code to make this happen. Does anyone have any other ideas or have ran into this before?