PHP Manual
rename
Description
bool rename ( string oldname, string newname [, resource context] )
Attempts to rename oldname to
newname.
Parameters
oldnameNote: The old name. The wrapper used in
oldnamemust match the wrapper used innewname.newnameThe new name.
contextNote: Context support was added with PHP 5.0.0. For a description of contexts, refer to Reference CLX, Stream Functions.
ChangeLog
| Version | Description |
|---|---|
| 5.0.0 | rename() can now also be used with some URL wrappers. Refer to Appendix O for a listing of which wrappers support rename(). |
| 4.3.3 | rename() is now able to rename files across partitions on *nix based systems. |
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




