note 19453 added to function.rename

From: Date: Wed, 27 Feb 2002 22:54:55 +0000
Subject: note 19453 added to function.rename
Groups: php.notes 
Request: Send a blank email to php-notes+get-27140@lists.php.net to get a copy of this message
If you want to rename files/dirs within scope of current directory (dir with running script or set by chdir) you have to add prefix './' ... Works both on win and *nix... ie. rename('./'.$from , './'.$to); -- http://www.php.net/manual/en/function.rename.php http://master.php.net/manage/user-notes.php?action=edit+19453 http://master.php.net/manage/user-notes.php?action=delete+19453 http://master.php.net/manage/user-notes.php?action=reject+19453

« previous php.notes (#27140) next »