Dibawah ini adalah sampel function rename php.
<?php
$file = ‘example.txt’;
$newfile = ‘example.txt.bak’;
$file = ‘example.txt’;
$newfile = ‘example.txt.bak’;
if (!rename($file, $newfile)) {
echo “failed to copy $file…\n”;
}
?>



0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.