L
L
LB7772015-01-18 02:07:43
FTP
LB777, 2015-01-18 02:07:43

How to make Windows synchronization - Hosting via FTP?

The working machine is Windows7 where I edit files. I need to send these files to shared hosting via FTP.
What are the ways to do this and how to do it?
If you know, please describe in detail.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Rikcon, 2015-01-18
@Rikcon

Deploy in Phpstorm, Filezilla
These are the ones I use, I prefer Phpstorm Deploy as I develop in it.

S
SagePtr, 2015-01-18
@SagePtr

WinSCP can conveniently open a remote file in an external editor (you can configure different editors), and send it back to the server when saving. Total commander, starting from some version, seems to be able to do this too.

S
Sergey, 2015-01-18
@gangstarcj

NetBeans - download the necessary files for editing, edit and it will synchronize them

F
falsebyte, 2015-01-18
@falsebyte

Cmd won't work? We write a batch file in which we copy files from the local machine to a remote FTP, then this batch file is added to the schedule and you're done.
Batch file ftp.txt
, approximately the following content

open 10.10.10.10
login //логин
pass  //пароль
binary
put D:\web\site\*.* /www/
bye

Y
younghacker, 2015-01-28
@younghacker

Utilities for working with ftp can be found here.
www.ncftp.com/ncftp
Specifically take the utility
NcFTPPut - command-line utility program
It does not require installation and works from the command line.
The batch file looks like this:

@echo off
ncftpput.exe -u %ftpuser% -p %ftppass% %ftpaddr% %1 %2 >> %3
set result=%ERRORLEVEL%
if %result% == 0 (
  @echo ftpput reported ok >> %3
) else (
  @echo ftpput reported error = %result% >> %3
)
exit /b

receives 3 parameters
1) path where to put on the ftp server
2) full path and file name to put on the server
3) full path and file name where to output results (log)
from the previous batch file or in the environment, you need to set three variables
set ftpuser - name ftp user
set ftppass - ftp user password
set ftpaddr - ftp server address
And don't forget to add path to ncftpput in path or call with full path.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question