Concept Framework 2.2 documentation Contents | Index

standard.net.ftp.FtpClose

Name Version Deprecated
FtpClose version 1.0 no

Prototype:
boolean FtpClose(number stream_handle)

Parameters:
stream_handle      the stream handle as returned by FtpAccess.

Description:
Closes a data connection.

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

Returns:
Returns true if succeeded, false if failed.

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