rename

(PHP 3, PHP 4 >= 4.0.0)

rename -- Renames a file

Description

int rename ( string oldname, string newname)

Attempts to rename oldname to newname.

Returns TRUE on success and FALSE on failure.