note 20020 added to function.rmdir

From: Date: Tue, 19 Mar 2002 15:47:37 +0000
Subject: note 20020 added to function.rmdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-27955@lists.php.net to get a copy of this message
rmdir only works if the directory is already empty. If you want to delete a directory with all its subdirectories and files you can simply use a unix shell command, put an backticks: <? rm -r /My_eGallery/gallery; ?> This will delete the directory gallery and all its subdirectories and files. BE CAREFUL WITH THE DIRECTORY! IF YOU WRITE A WRONG PATH ALL DATA WITHIN WILL BE DELETED!!! -- http://www.php.net/manual/en/function.rmdir.php http://master.php.net/manage/user-notes.php?action=edit+20020 http://master.php.net/manage/user-notes.php?action=delete+20020 http://master.php.net/manage/user-notes.php?action=reject+20020

« previous php.notes (#27955) next »