Page 1 of 1

Can't build data connection: Connection refused.

Posted: Tue Jun 03, 2008 12:00 pm
by niranjnn01
Hello,

While trying to upload a file to the server, I am receiving the following error.

"Can't build data connection: Connection refused."

- I had used ftp_put() function, and a file is being created in the server, in the specified path, but with size=0

How can i solve this problem.?

Thank you
Rakesh

Re: Can't build data connection: Connection refused.

Posted: Tue Jun 03, 2008 5:14 pm
by niranjnn01
Hello,
I have found the answer..
we need to use the ftp_pasv() function to set the ftp passive mode ON after logining into ftp

Rakesh