PHP ftp_close() Function
Definition and Usage
The ftp_close() function closes the FTP connection.
This function closes the specified connection identifier and releases resources.
Syntax
ftp_close(ftp_connection)
Parameter | Description |
---|---|
ftp_connection | Required. Specifies the FTP connection to use (identifier for the FTP connection). |
Example
<?php $conn = ftp_connect("ftp.testftp.com") or die("Could not connect"); //Some code to be executed ftp_close($conn); ?>