1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
// getting user delete file name
$file = $_POST["filename"]; // echo "uploads/" . $file; // delete the file
$res=unlink("uploads/" . $file); if($res){ // redirecting back to home header("Location: proceedings_index.php"); }else{ echo "File deleted fail"; } ?>
|