#40170 [Opn->Bgs]: Warning: ftp_put(): php_connect_nonb() failed: No route to host (65)
| From: | tony2001@php.net | Date: | Fri, 19 Jan 2007 15:56:36 +0000 |
| Subject: | #40170 [Opn->Bgs]: Warning: ftp_put(): php_connect_nonb() failed: No route to host (65) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107773@lists.php.net to get a copy of this message | ||
ID: 40170
Updated by: tony2001@php.net
Reported By: eddie at eschnell dot com
-Status: Open
+Status: Bogus
Bug Type: FTP related
Operating System: FreeBSD 4.11-STABLE
PHP Version: 4.4.4
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-01-19 15:50:51] eddie at eschnell dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40170&edit=1