I'm developing an application with Symfony2, and my users get to look at their folders (located in alfresco) but at a certain point some files need to be moved from one folder to another.
ftp_rename can rename/move a single file only. You cannot use it to move all files in a directory to another.
So you have to:
ftp_renamefor each, one-by-one.