Re: AW: [PHP-WIN] bug with rename() ?

From: Date: Wed, 29 Nov 2000 15:02:07 +0000
Subject: Re: AW: [PHP-WIN] bug with rename() ?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4162@lists.php.net to get a copy of this message
This depends on what your browser is doing at the time - you wil lnote that sometimes the browser seemingly randomly actually puts php/php.exe into the path before the path of the webroot. If it does this then the relative path becomes relative to the PHP run directory instead of relative to where the script is stored. I don't know if its a documented bug, but it happens. There are two ways around it which I have found - either use a forslash instead of the crud windowsie backslash or else hardcode the whole path that you want to copy to. Tom Wenz Christian wrote: > Hi, > > > It is not a bug. You have to specify the full path of the file you are > > renaming. If you did not, it will save the file in your php directory. > no, relative paths are taken relatively to th location of the php script, > and as I pointed out, this is not the case here. > > Regards > Christian > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#4162) next »