Re: getting file contents
| From: | Lars Torben Wilson | Date: | Wed, 11 Jun 2003 21:02:09 +0000 |
| Subject: | Re: getting file contents | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151150@lists.php.net to get a copy of this message | ||
On Wed, 2003-06-11 at 10:45, Matt Palermo wrote:
> I would just copy the file, but I am not sure how to copy the file and paste
> it in the same folder with a different name. Any advice you can give for
> that? Thanks.
>
> Matt
I may be missing something, but:
copy('/path/to/origname.txt', '/path/to/newname.txt');
...should do it.
http://www.php.net/copy
Hope this helps,
Torben
--
Torben Wilson <torben@php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----