ID: 30894 Comment by: von_helmet at hotmail dot com Reported By: evans at datahost dot gr Status: Open Bug Type: FTP related Operating System: Fedora Core 3 & (Kernel 2.6.9) PHP Version: 4.3.9 New Comment:
Same problem running PHP on a Gentoo system. PHP 4.3.10 Apache 2.0.52 Kernel 2.6.10-gentoo-r4 I get the following error message when trying to upload a file: "Warning: ftp_put(): PORT command successful in /home/peter/ftptest.php on line 22 Couldn't copy file." When I check on the remote server, there is a file of 0 bytes with 644 perms. Previous Comments: ------------------------------------------------------------------------ [2005-01-13 14:46:45] lafriks at hello dot lv I have the same warning and uploaded file is 0 bytes. I'm usnig Mandrake Cooker and have apache2-mod_php5-2.0.52_5.0.3-1mdk ------------------------------------------------------------------------ [2005-01-07 21:35:36] evans at datahost dot gr After various tests I am almost sure that some library from Fedora Core (after the default install i do a yum update) affects PHP. With the default installation of Fedora Core 1 I never had the problem described above. Now I reinstalled Fedora Core 1 and I did a yum update and changed some libraries with new ones. I also changed the kernel to 2.4.28 (manually compiled) and I get again the error with ftp_put(). p.s.: The problem exists in PHP 4.3.10 ------------------------------------------------------------------------ [2005-01-07 19:03:08] linhaibo at hotmail dot com wait 90s later,display: Warning: ftp_put(): Opening BINARY mode data connection for 1105119149_new.rm. 1105119149_new.rm is remote server file uploads the file, but its size also is 0 byte. ------------------------------------------------------------------------ [2004-11-27 20:39:40] evans at datahost dot gr Still doesn't work. I compiled the latest Snapshop (with the same configure command i quoted above) and i get the same warning. Warning: ftp_put(): PORT command successful in /home/www/www/index.php on line 16 The file gets uploaded but its size is 0 bytes. As long as I remember when I was trying Fedora Core 2 the problem was with a different/older version of PHP. ------------------------------------------------------------------------ [2004-11-27 09:21:22] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Works fine here. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/30894 -- Edit this bug report at http://bugs.php.net/?id=30894&edit=1