Trying to delete files from server but receive this error:
unlink(): cURL does not allow unlinking in...
Here is my code:
foreach($fDel as $del=>$delval){
$paths = array("art/images/", "art/smallthumbs/", "art/thumbs/");
$imgid = $delval['img_id'];
$fileNm = $delval['img_fname'];
foreach($paths as $x=>$path) {
$file = URL . $path . $fileNm.".jpg";
unlink($file);
}
}