rename()
April 12th, 2008 — admin— Renames a file or directory
Description
bool rename ( string $oldname , string $newname [, resource $context ] )
Attempts to rename oldname to newname .
Example with rename()
rename(â€/tmp/tmp_file.txtâ€, “/home/user/login/docs/my_file.txtâ€);
More example:
for ($i=1; $i<=26; $i++) {
$t=$i +0;
rename(â€E:/dreamhost/free-patent-search/00/wheelchair/$t.htmâ€, “E:/dreamhost/free-patent-search/00/wheelchair/index$t.htmlâ€);
}