Rename a file or directory in PHP
Description
The following code shows how to rename a file or directory.
Example
/*from w w w. j a va 2 s. c o m*/
<?php
rename("test.txt","test_copy.txt");
rename("test_copy.txt","test.txt");
?>
The following code shows how to rename a file or directory.
/*from w w w. j a va 2 s. c o m*/
<?php
rename("test.txt","test_copy.txt");
rename("test_copy.txt","test.txt");
?>