Current Location: Home> Function Categories> ftp_close

ftp_close

Close the FTP connection.
Name:ftp_close
Category:Uncategorized
Programming Language:php
One-line Description:Close the FTP connection.

Definition and usage

ftp_close() function closes the FTP connection.

This function closes the given connection identifier and frees the resource.

Example

 <?php
$conn = ftp_connect ( "ftp.testftp.com" ) or die ( "Could not connect" ) ;

//Some code to be executed

ftp_close ( $conn ) ;
?>

grammar

 ftp_close ( ftp_connection )
parameter describe
ftp_connection Required. Specifies the FTP connection to be used (the identifier of the FTP connection).
Similar Functions
Popular Articles