Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP ftp_rename() Function

PHP ftp_rename() Function


PHP FTP Reference Manual 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


PHP FTP Reference Manual Complete PHP FTP Reference Manual