PHP ftp_rename() Function
Complete PHP FTP Reference Manual
Definition and Usage
The ftp_rename() function renames a file or directory on the FTP server.
Returns TRUE on success, or FALSE on failure.
Syntax
ftp_rename(ftp_connection,from,to)
| Parameters | Description |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to use. |
| from | Required. Specifies the file or directory to rename. |
| to | Required. Specifies the new name of the file or directory. |
Example
Complete PHP FTP Reference Manual