Easy Tutorial
❮ Php Boolval Function Php Get_Resource_Type Function ❯

PHP ftp_rename() Function



Definition and Usage

The ftp_rename() function renames a file or directory on the FTP server.

If successful, the function returns TRUE. If it fails, it returns FALSE.

Syntax

Parameter 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 for the file or directory.

Example


❮ Php Boolval Function Php Get_Resource_Type Function ❯