File existance : File Exist « File Directory « PHP






File existance


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








Related examples in the same category