[PHP] Hapus semua file

9 06 2009

Berikut ini sintak sederhana namun berguna untuk menghapus semua file yang ada dalam suatu direktori.

foreach(glob("/files/".‘*.*’) as $v){
unlink($v);
}

Semoga membantu bagi yang membutuhkan….


Tidak ada artikel yang berhubungan.


Actions

Informations

One response to “[PHP] Hapus semua file”

27 07 2009
Mr. Amateur (21:59:09) :

Quote

$text=strtolower : bikin semua text jadi huruf kecil
$text=strtouper : bikin semua text jadi huruf besah

Quote selected text

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>