Re: [PHP] Re: rename

2005-06-18 Thread Mister Jack
Hi, That's what I've done, but I does not say clearly _when_ @rename should failed. I've read the documentation in the C library for Unix, and it says that it failed when it can't _add_ an entry to the directory. What I observe is an empty file... still weird, I'll look depper into it. (since i've

RE: [PHP] Re: Rename a File?

2001-07-11 Thread Kent Sandvik
> rename("moo.php", "foo.php"); Also, works cross-platform. In most cases try to find a function that is part of PHP rather than using the shell, especially if you are interested in making sure the code works across platforms. There's also most likely a performance hit when starting a shell

RE: [PHP] Re: Rename a File?

2001-07-11 Thread Jason Murray
> > How do I rename a file on Linux in PHP? > > $err = `mv moo.php foo.php` Or, to be safe: http://www.php.net/manual/en/function.rename.php ... `` doesn't work in Safe Mode. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com