Concept Framework 2.2 documentation Contents | Index

standard.net.ftp.FtpGet

Name Version Deprecated
FtpGet version 1.0 no

Prototype:
boolean FtpGet(string local_filename, string path, number mode, number connection_handle)

Parameters:
local_filename      the local file to store the received data
path      the ftp file path
mode      the ftp mode: FTPLIB_ASCII or FTPLIB_IMAGE
connection_handle      the connection handle as returned by FtpConnect.

Description:
Issue a GET command and write received data to output.

Example:
	function TestFtp() {
		var con=FtpConnect("ftp.rdsct.ro");
		if (!con) {
			echo "Can't Connect\n";
			return 0;
		} else {
			echo "Connected !!!\n";
		}
		FtpLogin("","",con);
		iif (!FtpGet("c:\\test.zip","/pub/PPPoE/win98/RASPPPOE_098B.ZIP",FTPLIB_IMAGE,con))
			echo "Error getting file\n";
		FtpQuit(con);
	}

Returns:
Returns true if succeeded, false if failed.

Documented by Eduard Suica, generation time: Sun Jan 27 18:15:18 2013 GMT(c)2013 Devronium Applications