Forum Moderators: coopster

Message Too Old, No Replies

ftp_put() warning

         

Fourbit

9:26 pm on Jun 18, 2005 (gmt 0)

10+ Year Member



I am trying to upload a file to a different server through a php script. This script works fine on other servers that I know of. But, not on this one.

I am recieving this error.

Warning: ftp_put(): PORT command successful in /home/accountname/public_html/testing/admin/includes/classes/feed.php on line 75
The FTP upload has FAILED!
Local file: /home/accountname/public_html/testing/feeds/testfroogle.txt
Remote file: froogletest.txt

I have checked configuration and I can upload with an ftp program using the login info just fine. The script logs in just fine. Creates a file on the remote server. But, won't upload the data. After a while the whole thing appears to log out.

I have been searching all over the net all morning. Just can't find the answer.

Paul

Fourbit

11:39 pm on Jun 18, 2005 (gmt 0)

10+ Year Member



Reply to my message. :D

I have found that the firewall was stopping the transfer. Not sure which port is being blocked. But, I added the code
ftp_pasv($conn, true);
to the script and seems to have solved the problem.

jatar_k

2:08 am on Jun 19, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld Fourbit,

glad you got it figured, I was looking around and got called away by my daughter, hehe.