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

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