ppeasy/scripttool/delfolderfiles.php

20 lines
376 B
PHP

<?php
// PHP program to delete all
// file from a folder
// Folder path to be flushed
$folder_path = "../../tempzip";
// List of name of files inside
// specified folder
$files = glob($folder_path.'/*');
// Deleting all the files in the list
foreach($files as $file) {
if(is_file($file))
// Delete the given file
unlink($file);
}
?>