Hello,
I was able to find the solution to my problem and thought I'd share it with all of you.
My web server that that I was using for running ftp_put on doesn't
allow incoming connections...
You can try getting around this by setting PHP to use Passive mode, which
makes the FTP client connection out to port 20 on the FTP server. A quick
look at the manual says that you should use ftp_pasv to make that happen.
so all you need to do in the code:
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// turn passive mode on
ftp_pasv($conn_id, true);
// upload the file
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);
That has worked well for me.
Hope this helps someone
-Amitai