FTP Error

From: Date: Fri, 19 Jan 2007 16:23:19 +0000
Subject: FTP Error
Groups: php.general 
Request: Send a blank email to php-general+get-247414@lists.php.net to get a copy of this message
Description: ------------ Warning: ftp_put(): php_connect_nonb() failed: No route to host (65) I get this error with the reproduce code. it also says Warning: ftp_put(): Type set to I. It is not uploading the file correctly. i have php 4.4.1 on iPowerWeb's server, so no upgrade is possible. Thanks in Advance Reproduce code: --------------- $conn_id = ftp_connect("ftpServer"); $login_result = ftp_login($conn_id, "userName", "passWord"); ftp_pasv($conn_id, true); if ((!$conn_id) || (!$login_result)) {
       echo "FTP connection has failed!";
       echo "Attempted to connect to stp server for user username";
       exit;
} else {
       echo "Connected to ftp server, for user user";
} $upload = ftp_put($conn_id, "bgd.txt", "bgdlocal.txt", FTP_BINARY); if (!$upload) {
       echo "FTP upload has failed!";
} else {
       echo "Uploaded $source_file to $ftp_server as $destination_file";
} // close the FTP stream ftp_close($conn_id); Expected result: ---------------- Uploaded $source_file to $ftp_server as $destination_file Actual result: -------------- Warning: ftp_put(): php_connect_nonb() failed: No route to host (65) in /home/beachgla/public_html/catalog/update/index.php on line 475 Warning: ftp_put(): Type set to I. in /home/beachgla/public_html/catalog/update/index.php on line 475

« previous php.general (#247414) next »