Posted By

bionic on 04/24/09


Tagged

delete unix cron


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

kanampo


Delete all files in folder on server - php


 / Published in: PHP
 

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

  1. $dir = 'your/directory/';
  2. foreach(glob($dir.'*.*') as $v){
  3. unlink($v);
  4. }

Report this snippet  

You need to login to post a comment.