ID:               30894
 Comment by:       raducalauz at yahoo 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:

Hi all,
I have run into the same problem like you, using PHP 4.3.6 on my VMware
machine.
But the funny part for me was because for some FTP servers was working
and for some others not.
After some research, I found out the firewall was blocking the
connection. Even if I tried to use passive FTP,
the server where i was trying to make FTP and was not working, was
trying to connect back to me on port 20 (ftp-data port)
After i have accepted connection on this port, all was fine. 
Hope is helping you.
p.s. For the FTP which was working i have give permissions the to IP
for all type of connections.


Previous Comments:
------------------------------------------------------------------------

[2005-01-14 13:12:51] von_helmet at hotmail dot com

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.

------------------------------------------------------------------------

[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.

------------------------------------------------------------------------

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

Reply via email to