rename

(PHP 3 <= 3.0.18, 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.