php ftp返回最后一个命令

I figured I would make a new question for this since it isn't the same as my last question which I am also trying to work around. (Severity: Warning Message: ftp_chmod() [function.ftp-chmod]: Permissions changed on)

I am trying to use PHP ftp_exec to rename a file; however, it is outputting the result of the last ftp command that I ran. Below is the error:

A PHP Error was encountered
Severity: Warning
Message: ftp_exec() [function.ftp-exec]: Permissions changed on /public_html/admin/tempUpload/1356124170

Filename: models/inventory_model.php
Line Number: 80

Line 80 is below:

$command = 'rename '.$currentFolder.$imgName.' '.$newFolderFile.$imgName;
ftp_exec($conn_id, $command);

And several lines above that is where I am changing the permissions on the mentioned directory. Also, the rename exec command isn't doing anything, but all the commands above it are working as expected.

ftp_chmod($conn_id, 0777, $currentDir);

Do I need to reconnect for every command? Or is there some sort of clearing that I need to do prior to running the ftp_exec command? Also, when I run the exact same ftp_exec while being connected to ftp via cmd it works fine.