Maybe he or she was trying to do it like this: if (unlink("../news_photos/smalls/".$filename_old) == TRUE BUT DON'T UNLINK IT YET, STUPID) {     unlink("../news_photos/smalls/".$filename_old) NOW!!!;  } He or she missed the "Do What I Mean, Not What I Say" operators. Oh, they haven't been invented yet. :P