The ftp_close() function closes the FTP connection.
ftp_close(ftp_connection)
parameter | describe |
---|---|
ftp_connection | Required. Specifies the FTP connection to be closed. |
<?php$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");//some code to be executedftp_close($conn);?>