Hot answers tagged ftp
While this question is old, there's no really comprehensive answer. So I'm adding one. In the passive FTP mode (the most common mode nowadays), the FTP server listens on port 21 for an FTP control connection. But for all data transfers, including directory listings, it listens on an additional port. The port is picked out of a configured port range. If you ...
Save remote file list to a file; Count number of lines in the file. @echo off echo open ftp.example.com>ftp.txt echo user>>ftp.txt echo password>>ftp.txt echo ls /remote/path files.txt>>ftp.txt echo bye>>ftp.txt ftp -s:ftp.txt set /a LINES=0 for /f %%j in ('type files.txt^|find "" /v /c ') do set /a LINES=%%j del files.txt ...
You cannot write to HTTP using file_put_contents(). From the file_put_contents() documentation: A URL can be used as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename. See the Supported Protocols and Wrappers for links to information about what abilities the various ...
You are trying to run winscp.com from winscp.com. WinSCP obviously not recognizes the winscp.com as its command. Your ftp-script.txt is not a WinSCP script, it's actually a Windows batch file. Delete your ftp.bat. Rename the ftp-script.txt to ftp.bat. Append pause to its end. And run it. Then you will hit second issue, that you are missing a double-...
In WinSCP preferences, on the first Environment page, check the Confirmations > Overwriting of files. Note that for background transfers, all confirmations are turned off by default. To enable them, go to Transfer > Background page and uncheck the No confirmations for background transfers.
I found an easier way to do it: we get the greyed "Expand" context menu only for FTP links. If, in the Quick Access folder, we multi-select (holding the Ctrl button) the FTP link(s) plus another normal one, then the normal context menu is displayed and we can unpin them all at once.
Only top voted, non community-wiki answers of a minimum length are eligible