ID: 9208 Updated by: jmoore Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] No feedback. Closing. ------------------------------------------------------------------------ [2001-10-29 02:26:51] [EMAIL PROTECTED] Does this fail with PHP 4.0.6 too? ------------------------------------------------------------------------ [2001-02-10 17:04:00] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]