

I have checked and the FTP server is set to return the external IP address when passive mode is established. Other people have talked on SO about intermittent problems that cause this error (eg "php_connect_nonb() failed: Operation now in progress (115)" happens intermittently) but for me it is a constant error. I have managed to get a response to ftp_systype which tells me "UNIX". I get the same problem when using an SSL or non-SSL connection. So that is in there now too ( ftp_set_option($ftp_conn, FTP_USEPASVADDRESS, false)) but I still get the same error.

The connection needs to be passive and from other answers in SO I believe that it is important to stop the passive mode using the wrong IP address. I have tried looking these errors up but have ben unable to find anything that helps me. Reason: EADDRINUSE - Local address in use. The destination server logs an error: Couldn't bind on 192.168.1.1:14148. ftp_nlist(): php_connect_nonb() failed: Operation now in progress (115)).

However, as soon as the function attempts to do anything (eg list the content of the office server directory) I get an error (such as. The function connects to the office server and logs in ok.
How do i use ftp to move a file from unix to windows windows#
FTP has been installed on the Windows server. I am attempting to send files (PDFs) from a webserver (UNIX) to a Windows server in an office using a PHP function running on the webserver. I have a problem with trying to send files using a PHP FTP function.
