rename
rename($server,$exist_file_name,$new_file_name); - rename a file or folder to FTP
The input function accepts parameters:
$server – address of an already connected FTP connection$exist_file_name – path to an existing file or folder on FTP$new_file_name – path to a renamed file or folder on FTP
After testing, the function returns the result of its work to the script :
true – successfully renamedfalse – errors occurred during the renaming process