RE: [PHP] Re: Rename a File?
| From: | Kent Sandvik | Date: | Thu, 12 Jul 2001 00:22:26 +0000 |
| Subject: | RE: [PHP] Re: Rename a File? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57520@lists.php.net to get a copy of this message | ||
> 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 versus issuing system level
calls. --Kent