PHP 4.0 Bug #6745: I can`t upload file in passive mode
| From: | havoc at lookanswer dot com | Date: | Thu, 14 Sep 2000 02:13:03 +0000 |
| Subject: | PHP 4.0 Bug #6745: I can`t upload file in passive mode | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33244@lists.php.net to get a copy of this message | ||
From: havoc@lookanswer.com
Operating system: FreeBSD 4.1 STABLE
PHP version: 4.0.2
PHP Bug Type: FTP related
Bug description: I can`t upload file in passive mode
upload test
<?
$ftp=ftp_connect("my server");
echo "connected\n";
ftp_login($ftp, "user", "passwd");
ftp_pasv($ftp, true);
ftp_put($ftp, "/test", "/COPYRIGHT", FTP_BINARY);
ftp_quit($ftp);
echo "<br>ok<br>\n";
?>
It wrote:
test connected
Warning: ftp_put: No PORT command issued first. in
/usr/local/apache/htdocs/pro.lookanswer.com/docs/up.php on line 9
ok
Modules: ./configure --with-apxs=/apache/bin/apxs --with-mysql --with-pgsql --enable-ftp
--with-openssl --with-mod-charset