bug with rename() ?
| From: | Wenz Christian | Date: | Wed, 29 Nov 2000 10:08:03 +0000 |
| Subject: | bug with rename() ? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4156@lists.php.net to get a copy of this message | ||
Hello,
maybe it's a bug, but if someone please could try to reproduce that, maybe
it's a misconfiguration of mine (though I've tested this on several
different machines).
Here's a minimal test case: create a file c:\temp\temp.txt
Now create a PHP file, but not in the root directory of your webserver, but
in a subdirectory of it, that contains this command:
rename("c:\\temp\\temp.txt", "temp.txt");
Now run this script from your webbrowser (e.g.
http://server/subdir/rename.php)
The file is now moved away from c:\temp, but not into the directory where
rename.php resides in (as one would guess), but in the root directory of the
web application!
What do you think? I tested this with IIS4 and PHP4.0.3pl1, on different
machines.
Regards
Christian