|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-05 07:13 UTC] nicos@php.net
[2003-01-05 07:21 UTC] linux at psoftwares dot hu
[2003-01-05 07:24 UTC] nicos@php.net
[2003-01-05 07:34 UTC] linux at psoftwares dot hu
[2003-01-05 07:38 UTC] derick@php.net
[2003-01-05 08:26 UTC] linux at psoftwares dot hu
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 19:00:01 2025 UTC |
it's an interesting thing about the rename() function: the code which doesn't work: <?php $base = "/home/phanatic/temp/"; $from = "users"; $to = "userdata"; rename ($base.$from, $base.$to); ?> and which works (if the script is in the same dir): <?php $from = "users"; $to = "userdata"; rename ("./".$from, "./".$to); ?> error message for the first code: Warning: rename(/home/phanatic/temp/users,/home/phanatic/temp/userdata) [http://www.php.net/function.rename]: No such file or directory in /home/phanatic/temp/test_rename.php on line 8 my configure line: ./configure --with-layout=GNU --with-mysql=shared --with-pgsql=shared --with-gd=shared --with-gd2 --enable-ftp --with-calendar --with-posix -- enable-sockets --enable-cli --enable-cgi --enable-pcntl --with-bz2=shared --with-zlib-dir=/usr/include/ --prefix=/usr --sysconfdir=/etc/php hope i could provide all the infos needed to fix this problem...