note 20933 added to function.rmdir

From: Date: Mon, 22 Apr 2002 16:03:02 +0000
Subject: note 20933 added to function.rmdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-29685@lists.php.net to get a copy of this message
To remove a directory as a shell script the use the following: #! /usr/bin/php -q <? exec ("rm -rf /path/to/directory"); ?> This is a little better than the note above since some *NIX systems ask for confirmation. Since we are forcing a deletion of the file/directory no qualification is required. -- http://www.php.net/manual/en/function.rmdir.php http://master.php.net/manage/user-notes.php?action=edit+20933 http://master.php.net/manage/user-notes.php?action=delete+20933 http://master.php.net/manage/user-notes.php?action=reject+20933

« previous php.notes (#29685) next »