Delete all files in folder on server - php


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $dir = 'your/directory/';
  2. foreach(glob($dir.'*.*') as $v){
  3. unlink($v);
  4. }

URL: http://www.daniweb.com/code/snippet868.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.