<html> <head> <title>Copy,Move dan Delete Files</title> </head> <body> <?php $filename = "data.txt"; $tempname1 = $filename . rand(); $tempname2 = $filename . rand(); copy($filename, $tempname1); echo "Kopi file ke $tempname1 <br>"; rename($tempname1, $tempname2); echo "Pindah file ke $tempname2 <br>"; unlink($tempname2); echo "File $tempname2 telah dihapus."; ?> </body> </html>
Edited by Jordan, 23 August 2008 - 03:47 AM.


Sign In
Create Account

Back to top









