Bug #9208 Updated: rename() not using current working directory
| From: | jmoore@php.net | Date: | Mon, 19 Nov 2001 11:39:52 +0000 |
| Subject: | Bug #9208 Updated: rename() not using current working directory | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70898@lists.php.net to get a copy of this message | ||
ID: 9208
Updated by: jmoore
Reported By: lalik@softhome.net
Status: Closed
Bug Type: Filesystem function related
Operating System: windows 98
PHP Version: 4.0.4pl1
New Comment:
This is <most probably> because you are calling php from the command line in the following
format:
php -q c:\php_scripts\script.php
which would make c:\php4\ your working directory rather than c:\php_scripts\, to correct this
chdir() before you execute php and call it like c:\php4\php -q script.php or chdir() at the begining
of your script.
- James
Previous Comments:
------------------------------------------------------------------------
[2001-11-19 05:42:07] sander@php.net
No feedback. Closing.
------------------------------------------------------------------------
[2001-10-29 02:26:51] sniper@php.net
Does this fail with PHP 4.0.6 too?
------------------------------------------------------------------------
[2001-02-10 17:04:00] lalik@softhome.net
rename() function does not use current working directory, but c:\php\ instead (on windows system)
so if I use rename('a','b') from any directory, it will try to rename c:\php\a
to c:\php\b
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=9208&edit=1