I have the following code:
if(file_exists("../media/books/$oldcover")) {
unlink("../media/books/$oldcover");
} else {
//do nothing
}
Why does the if works good and the else returns this annoying note: Unlink(../media/books/) [function.unlink]: Is a directory in (path...)
I want the else doing nothing.