6 lines
168 B
PHP
6 lines
168 B
PHP
<?php // movefile.php
|
|
if (!rename('testfile2.txt', 'testfile2.new'))
|
|
echo "Could not rename file";
|
|
else echo "File successfully renamed to 'testfile2.new'";
|
|
?>
|