I have a function to delete files from the admin side, And it's not working.
Function:
public function delete_project_files($fileID,$file_url) {
$result = mysql_query("DELETE FROM project_files WHERE file_id='$fileID'");
echo $file_url;
unlink("uploadData/$file_url");
echo "<div class='alert alert-success'><b>Project File Deleted.</b></div>";
}
Error Message I am getting:
Warning: unlink(uploadData/) [function.unlink]: Permission denied in F:\Daxxip Projects\SRS CRM\Application\inc\TouchClass.php on line 406
My Class is inside an inc/
folder and my files are storing to a folder called uploadData