Add exams from exam58 to exam98
This commit is contained in:
22
exam82/rdfiles.php
Normal file
22
exam82/rdfiles.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$filename = 'filetodelete.txt';
|
||||
|
||||
if(@unlink($filename)){
|
||||
echo 'File <strong>'. $filename .'</strong> has been deleted';
|
||||
} else {
|
||||
echo 'File cannot be deleted!';
|
||||
}
|
||||
|
||||
$file = 'filetorename.txt';
|
||||
$rand = rand(10000,99999);
|
||||
|
||||
if(@rename($file,$rand.'txt')){
|
||||
echo 'File has been renamed successfully to ' . $rand;
|
||||
} else {
|
||||
echo 'File cannot be renamed!';
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user