PHP Manual
Prev |  | Next

# ftp_rename

(3.0.13 - 3.0.18 only, PHP 4 >= 4.0.0)

ftp_rename -- Renames a file on the ftp server.

## Description

``boolean ftp_rename` (resource ftp_stream, string from, string to)`

ftp_rename() renames the file or directory currently named `from` to the new name `to`, on the FTP stream `ftp_stream`.

Returns `TRUE` on success, `FALSE` on error.

Prev | Home | Next
ftp_mdtm | Up | ftp_delete