rename Renames a file Description boolrename stringoldname stringnewname Attempts to rename oldname to newname. &return.success; Example with <function>rename</function> ]]> Prior to PHP 4.3.3, rename could not rename files across partitions on *nix based systems. See also copy, unlink, and move_uploaded_file.