Page 1 of 1

Problems with reanme()...

Posted: Tue Aug 19, 2003 12:00 am
by Mr. Tech
Hi!

I need to be able to renames folders so I use the rename cmd. But when I got to rename a folder I get this error:

Warning: rename() failed (No such file or directory) in c:\program files\easyphp\www\created\rename.php on line 2

But it still renames the folder!!!

Why am I gettting this error? :?

Posted: Tue Aug 19, 2003 12:40 am
by qartis
Not sure about the problem, but a quick fix would be..

Code: Select all

if (!@rename($folder)){
echo "Folder did not rename.";
}
.. which allows error checking, but supresses those obtrusive html errors.

Posted: Tue Aug 19, 2003 12:51 am
by Mr. Tech
i'll try thank!

Does anyone know the error?

Posted: Tue Aug 19, 2003 12:53 am
by Mr. Tech
Awesome! It worked! Thanks!