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