Date: 05/29/00
- Next message: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4666: rename or copy files, fails"
- Previous message: nthjam001 <email protected>: "[PHP-DEV] PHP 4.0 Bug #4665: Error in ISAPI module, preventing Netscape access to Frontpage protected areas."
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4666: rename or copy files, fails"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4666: rename or copy files, fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: cox <email protected>
Operating system: Linux
PHP version: 4.0.0 Release
PHP Bug Type: Scripting Engine problem
Bug description: rename or copy files, fails
I can not copy or rename a file to a non absolut PATH. Ex:
include "files.inc";
$dir = "../images";
mycopy($file,$dir);
<--files.inc--->
function mycopy($foo,$dir){
copy($foo,$dir);
}
Now I need to do something ugly like:
<--files.inc--->
function mycopy($foo,$dir){
global $PATH_TRANSLATED;
$path = dirname($PATH_TRANSLATED);
$foo = $path . "/" . $foo;
copy($foo,$dir);
}
With PHP < 4.0RC2 all was good. Unlink works good also.
My PHP4 version is CVS 26-05-00
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4666: rename or copy files, fails"
- Previous message: nthjam001 <email protected>: "[PHP-DEV] PHP 4.0 Bug #4665: Error in ISAPI module, preventing Netscape access to Frontpage protected areas."
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4666: rename or copy files, fails"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4666: rename or copy files, fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

