Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php delete all files in folder

$files = glob('path/to/temp/*'); // get all file names
foreach($files as $file){ // iterate files
  if(is_file($file)) {
    unlink($file); // delete file
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #delete #files #folder
ADD COMMENT
Topic
Name
2+6 =