[PHP] Re: Rename a File?

2001-07-11 Thread Henrik Hansen
[EMAIL PROTECTED] (Randy Johnson) wrote: How do I rename a file on Linux in PHP? you mean using a php function? php.net/rename -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: Rename a File?

2001-07-11 Thread Alex Black
in article [EMAIL PROTECTED], Randy Johnson at [EMAIL PROTECTED] wrote on 7/13/01 10:53 AM: How do I rename a file on Linux in PHP? Thanks Randy $err = `mv moo.php foo.php` _a -- 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 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

[PHP] Re: Rename a File?

2001-07-11 Thread Philip Hallstrom
You can also do rename(moo.php, foo.php); provided that both are on the same filsystem. On Wed, 11 Jul 2001, Alex Black wrote: in article [EMAIL PROTECTED], Randy Johnson at [EMAIL PROTECTED] wrote on 7/13/01 10:53 AM: How do I rename a file on Linux in PHP? Thanks Randy $err

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