Page 1 of 1

problem using ftp_get()

Posted: Thu Apr 03, 2008 8:34 am
by manojm
hi all!
sorry for my english.
I m very new to php.

i m using ftp_get() to download a file from ftp server
ftp_connect login correctly.
but ftp_get always return false with following waring

Warning: ftp_get() [function.ftp-get]: Opening data channel for file transfer.

plz help

Re: problem using ftp_get()

Posted: Thu Apr 03, 2008 1:37 pm
by Christopher
Check that the server supports what you are trying to get. Some FTP servers do not support wildcards, for example.

Re: problem using ftp_get()

Posted: Fri Apr 04, 2008 6:55 am
by manojm
thanx for reply

I have done it.

change to passive mode after login as

ftp_pasv($conn_id,true);