note 32208 added to function.rename

From: Date: Tue, 20 May 2003 15:13:13 +0000
Subject: note 32208 added to function.rename
Groups: php.notes 
Request: Send a blank email to php-notes+get-48666@lists.php.net to get a copy of this message
You should test files before moving them: I did rename($old, $new) and $old was empty by mistake. My win2k system then renamed the whole directory where the script was placed into $new :-) ---- Manual Page -- http://www.php.net/manual/en/function.rename.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32208 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32208&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32208&report=yes

« previous php.notes (#48666) next »