PHP code to delete all files in folder

<?php$files = glob('images/*'); // get all file namesforeach($files as $file){ // iterate files  if(is_file($file))    unlink($file); // delete file}?>

 

Comments

Popular posts from this blog

MATLAB code for Circular Convolution using Matrix method

Positive number pipe in angular 2+