note 92575 added to function.rename

From: Date: Thu, 30 Jul 2009 04:10:01 +0000
Subject: note 92575 added to function.rename
Groups: php.notes 
Request: Send a blank email to php-notes+get-158897@lists.php.net to get a copy of this message
For those who are still confused about the behavior of rename() in Linux and Windows (Windows XP) when target destination exists: I have tested rename($oldName, $targetName) in PHP 5.3.0 and PHP 5.2.9 on both OS and find that if a file named $targetName does exist before, it will be overwritten with the content of $oldName ---- Server IP: 208.69.120.35 Probable Submitter: 210.245.51.187 ---- Manual Page -- http://www.php.net/manual/en/function.rename.php Edit -- https://master.php.net/note/edit/92575 Del: integrated -- https://master.php.net/note/delete/92575/integrated Del: useless -- https://master.php.net/note/delete/92575/useless Del: bad code -- https://master.php.net/note/delete/92575/bad+code Del: spam -- https://master.php.net/note/delete/92575/spam Del: non-english -- https://master.php.net/note/delete/92575/non-english Del: in docs -- https://master.php.net/note/delete/92575/in+docs Del: other reasons-- https://master.php.net/note/delete/92575 Reject -- https://master.php.net/note/reject/92575 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158897) next »