note 56797 deleted from function.ftp-exec by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 14:54:02 +0000 |
| Subject: | note 56797 deleted from function.ftp-exec by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197212@lists.php.net to get a copy of this message | ||
Note Submitter: chris dot pittman at sonopress dot com
----
I've been using the php ftp functions pretty extensively at work. We've recently
discovered that some of the ftp servers we connect to, paticularly in Europe, are using extended
passive mode. On a server using extended passive mode the php ftp functions will timeout. For
those of you who encounter this, the solution is to send the command:
ftp_exec (conn_id, 'epsv4 off' );
Do this immediately after ftp_login and you should be fine.