NewTester 0 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 Share this post Link to post Share on other sites
Bert 1,430 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/ Share this post Link to post Share on other sites
NewTester 0 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 Share this post Link to post Share on other sites
NewTester 0 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 Share this post Link to post Share on other sites