note 70766 added to function.rmdir

From: Date: Fri, 27 Oct 2006 04:14:46 +0000
Subject: note 70766 added to function.rmdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-119156@lists.php.net to get a copy of this message
Of course, if you're on *nix... <? $dir = '/path/to/folder'; // delete directory and all contents within shell_exec("rm -rf ${dir}"); // delete all contents within, but leave the toplevel directory shell_exec("rm -rf ${dir}/*"); ?> ---- Server IP: 216.235.15.211 Probable Submitter: 68.148.104.116 ---- Manual Page -- http://www.php.net/manual/en/function.rmdir.php Edit -- https://master.php.net/note/edit/70766 Del: integrated -- https://master.php.net/note/delete/70766/integrated Del: useless -- https://master.php.net/note/delete/70766/useless Del: bad code -- https://master.php.net/note/delete/70766/bad+code Del: spam -- https://master.php.net/note/delete/70766/spam Del: non-english -- https://master.php.net/note/delete/70766/non-english Del: in docs -- https://master.php.net/note/delete/70766/in+docs Del: other reasons-- https://master.php.net/note/delete/70766 Reject -- https://master.php.net/note/reject/70766 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119156) next »