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