Re: FTP - moving/copying files
| From: | Jochem Maas | Date: | Thu, 29 Jun 2006 12:02:01 +0000 |
| Subject: | Re: FTP - moving/copying files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238903@lists.php.net to get a copy of this message | ||
James Nunnerley wrote:
> I'm setting up an ftp manager which allows a user to connect to their space
> on an external server.
>
>
>
> All the php-ftp functions work fine - after I'd realized how to use the
> passive functionality - see previous email to list!
>
>
>
> I've also got working the download and upload functionality, which is quite
> nice, but annoying - it doesn't allow you to download the file without
> creating a temporary version (whereas if it were a local copy you'd be able
> to copy it to a variable, then echo it out...
>
>
>
> Finally, what I now need to do it be able to move/copy files within the FTP
> space. The standard FTP commands (mv & cp or copy) are not featured in
> php-ftp functions. Does anyone have any suggestions bar copying the whole
> lot to a local drive then upload in the new space?
what about: http://php.net/manual/en/function.ftp-rename.php
?
>
>
>
> Cheers
>
> Nunners
>
>