I searched on the net but I didn't find a good answer. my problem is I want to delete images which are uploaded in a folder named upload in my application root my website is in codeigniter when I click on delete link to delete an image it gives this error:
Severity: Warning
Message: unlink(): http does not allow unlinking
my code is:
$a = base_url()."public/uploads/".$file_name;
unlink($a);