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