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

From: Date: Wed, 29 Nov 2000 19:11:05 +0000
Subject: AW: AW: [PHP-WIN] bug with rename() ?
Groups: php.windows 
Request: Send a blank email to php-windows+get-4178@lists.php.net to get a copy of this message
Hi, > 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. hmmm... this happens with any browser I tried, so I think it's bug. > 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 same phenonemon > instead of the crud windowsie backslash or else hardcode the whole path > that > you want to copy to. yep, I know that works, but before filing a bug, I wanted to know if that is reproducible on other systems. Since it seems to be, I think I can safely report. :) Thanks for your help! Regards Christian 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 (#4178) next »