When I use file_exists, it always returns TRUE. It works when the file IS there, but when the file is NOT there it still executes and then gives an unlink error.
if(file_exists($row["pic"])){
unlink("$row[pic]");
}else{
echo'not there';
}
$row["pic"] has been tested with blank, folders and names after the root path, file name, random letter, everything has returned TRUE... Is there something I need to do different?
Thanks for any help.