NewTester Posted August 2, 2010 Posted August 2, 2010 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
Bert Posted August 2, 2010 Posted August 2, 2010 I see you have the variables listed, but I would need to see how you specified your variable in order to see what the problem is. The Vollatran project My blog: http://www.vollysinterestingshit.com/
NewTester Posted August 3, 2010 Author Posted August 3, 2010 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
NewTester Posted August 4, 2010 Author Posted August 4, 2010 Can anybody pls reply to this mail...............its very urgent 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now