note 96477 modified in function.ftp-put by danbrown

From: Date: Mon, 01 Mar 2010 15:58:54 +0000
Subject: note 96477 modified in function.ftp-put by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166486@lists.php.net to get a copy of this message
I [had an error for which] ftp_pasv didnt solve the problem. Here's why: FTP uses 2 connections on different ports, one for connection/handshake and another for data transfer. The problem was that the ftp-server (that php was connecting to) also used different IP-addresses for the different connections (say what!?). Normally the firewall (csf) detects ftp-connections and allows them through but because of the different IP-adresses this didn't work. Solution: 1 angry mail to the ftp server owner. Allowing the second IP in the firewall. --was-- I got the same error as "Anonymous 26-Apr-2009 02:51" But ftp_pasv didnt solve the problem. Here's why: FTP uses 2 connections on different ports, one for connection/handshake and another for data transfer. The problem was that the ftp-server (that php was connecting to) also used different IP-addresses for the different connections (say what!?). Normally the firewall (csf) detects ftp-connections and allows them through but because of the different IP-adresses this didn't work. Solution: 1 angry mail to the ftp server owner. Allowing the second IP in the firewall. http://php.net/manual/en/function.ftp-put.php

« previous php.notes (#166486) next »