File existance
<?php $myfile = "./test1.txt"; if (file_exists($myfile)) { $result=unlink ($myfile); echo $result; } ?>