You are here: Re: Copying file from hosted remote sever to local machine « All PHP « IT news, forums, messages
Re: Copying file from hosted remote sever to local machine

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация