PHP/File Directory/File Delete

Материал из Web эксперт
Версия от 10:04, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Delete a file

   <source lang="html4strict">

<?php

  $file_delete = "home/meeta/my.php";
  
  if (unlink($file_delete)) {
     echo "The file was deleted successfully.", "\n";
  } else {
     echo "The specified file could not be deleted. Please try again.", "\n";
  }

?>


      </source>