Sign in to follow this  
Followers 0
NewTester

Unable to Download File From FTP

4 posts in this topic

Hi All,

I am not able to download file from FTP using _FTP_FileGet() function. Every time i get the return value as 0.

First i thought it is related to permission stuff but i am able to Upload filed to FTP easily.

This is wat i am trying to do

$GetFile=_FTP_FileGet($Conn, $s_RemoteFile, $s_LocalFile)

Can anyone please tell me y this is hapening as this is very urgent

Thanks in Advance

Share this post


Link to post
Share on other sites



ok here is wat am tryin to do

$server = 'ftp.xxxxxx.com'

$username = 'xxxxxx'

$pass = 'xxxxxxxx'

$s_FileName="ftp://ftp.xxxxxx.com/Download"

$s_LocalFile="C:\"

$Open = _FTP_Open('MyFTP Control')

$Conn = _FTP_Connect($Open, $server, $username, $pass)

Static $b=_FTP_DirPutContents($Conn, $s_LocalFolder, $s_RemoteFolder, 1 ); this is working fine(upload)

Static $GetFile=_FTP_FileGet($Conn, $s_FileName, $s_LocalFile)

please let me know wat is the problem as this is very urgent

Share this post


Link to post
Share on other sites

Can anybody pls reply to this mail...............its very urgent :blink:;)

ok here is wat am tryin to do

$server = 'ftp.xxxxxx.com'

$username = 'xxxxxx'

$pass = 'xxxxxxxx'

$s_FileName="ftp://ftp.xxxxxx.com/Download"

$s_LocalFile="C:\"

$Open = _FTP_Open('MyFTP Control')

$Conn = _FTP_Connect($Open, $server, $username, $pass)

Static $b=_FTP_DirPutContents($Conn, $s_LocalFolder, $s_RemoteFolder, 1 ); this is working fine(upload)

Static $GetFile=_FTP_FileGet($Conn, $s_FileName, $s_LocalFile)

please let me know wat is the problem as this is very urgent

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0