problem using ftp_get()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
manojm
Forum Newbie
Posts: 2
Joined: Thu Apr 03, 2008 8:29 am

problem using ftp_get()

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: problem using ftp_get()

Post by Christopher »

Check that the server supports what you are trying to get. Some FTP servers do not support wildcards, for example.
(#10850)
manojm
Forum Newbie
Posts: 2
Joined: Thu Apr 03, 2008 8:29 am

Re: problem using ftp_get()

Post by manojm »

thanx for reply

I have done it.

change to passive mode after login as

ftp_pasv($conn_id,true);
Post Reply