Connect to FTP via PHP script issue
There is no problem with the connection, but trying to download file from server 2 to my server through php, but it return me There was a problem.
PHP Warning: ftp_nlist(): php_connect_nonb() failed: Operation now in progress (115)
PHP Warning: ftp_get(): Timeout.
ftp_get(): Entering Passive Mode
if(ftp_get($conn_id, $local_file, $server_file, FTP_BINARY))
{
echo "Successfully written to $local_file ";
}
else
{
echo "There was a problem\n";
}
-
Hello, Do you notice any output to /var/log/messages on either the source or destination server when this happens? Also, ensure to review the following document: How to Enable FTP Passive Mode - cPanel Knowledge Base - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
1 comment