Is there a file check

Hello,

I check the file first to delete the image
However, there is no file, but it shows there

But in reality there is no picture, image.jpg

This error: Warning: unlink(directory/directory/): Is a directory in

$files "directory/directory/image.jpg";

if(file_exists($files)){

if(unlink($files)){ // Warning: unlink(directory/directory/): Is a directory in

}else{

}
}else{

}
Sponsor our Newsletter | Privacy Policy | Terms of Service