note 64460 added to function.rmdir
| From: | notatanydotcom at osu1 dot php dot net | Date: | Fri, 14 Apr 2006 18:21:56 +0000 |
| Subject: | note 64460 added to function.rmdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-108102@lists.php.net to get a copy of this message | ||
Save some time, if you want to clean a directory or delete it and you're on windows.
Use This:
chdir ($file_system_path);
exec ("del *.* /s /q");
You can use other DEL syntax, or any other shell util.
You may have to allow the service to interact with the desktop, as that's my current setting
and I'm not changing it to test this.
----
Server IP: 64.71.164.2
Probable Submitter: 12.163.122.195
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.rmdir.php
Edit -- http://master.php.net/note/edit/64460
Del: integrated -- http://master.php.net/note/delete/64460/integrated
Del: useless -- http://master.php.net/note/delete/64460/useless
Del: bad code -- http://master.php.net/note/delete/64460/bad+code
Del: spam -- http://master.php.net/note/delete/64460/spam
Del: non-english -- http://master.php.net/note/delete/64460/non-english
Del: in docs -- http://master.php.net/note/delete/64460/in+docs
Del: other reasons-- http://master.php.net/note/delete/64460
Reject -- http://master.php.net/note/reject/64460
Search -- http://master.php.net/manage/user-notes.php