User Tools

Site Tools


uphp:functions:ftp_close

ftp_close

WM-MINI2, WM-MEGA FW >= 2.1137 WM-M2 FW >= 3.1137

Close an active FTP connection

Description

ftp_close ( )

Close the FTP connection if it is open.

Parameters

None

Return Values

None

Example

<?
	$res = ftp_open("ftp.myserver.com",21,"myuser","mypassword");
	if ($res) {
 
		// get the current directory on the server
 
		$res=ftp_command("pwd");
 
		print($res."\r\n"); // will print out something like: 257 "/" is your current location
 
		ftp_close();
	}
?>

See Also

ftp_open() - Open an FTP connection

uphp/functions/ftp_close.txt · Last modified: 2021/09/13 05:57 (external edit)