note 8277 deleted from function.rename by aidan

From: Date: Wed, 26 Jan 2005 01:43:01 +0000
Subject: note 8277 deleted from function.rename by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83952@lists.php.net to get a copy of this message
Note Submitter: rrstudio2 at icqmail dot com ---- [Editor's note: Behavior has been documented before, see message above and source code for PHP] Here is a tip for window's users: I tried rename ("test.txt", "testing.tst") and it doesn't work although the html file, php file and test.txt are all in the same directory. I also tried to type in the location of the directory, rename ("c:\program files\apache\htdocs\forms\test.txt","testing.txt") but that doesn't work either (I tried forward slashes too), I think the problem there might be the two word directory name. So what I ended up doing was creating a new directory c:\phpcode and put the test.txt file in there and you have to use forward slashes in the code, so the working code is... rename ("c:/phpcode/test.txt","testing.txt"); Rather picky isn't it...

« previous php.notes (#83952) next »