Posted by Chung Leong on 10/29/05 18:30
Ian Davies wrote:
> Hello
> I am trying to use php to automate the copying of a file from my remotely
> hosted directory to my computer. I have put together the following but it
> will only do the copying from one directory to another on the remote server.
> Reading the postings on these functions they suggest that it can be done but
> it appears to be the case if your are hosting your site on the same machine
> you want to copy the files to. Does anyone know if there are functions in
> php to do the transfer from remote server to my machine or if the code below
> will acheive this with modification?
Simple, old fashioned way of automating a task:
ftp < commands.txt
Navigation:
[Reply to this message]
|