PHP ftp_quit()Functions
Complete PHP FTP Reference Manual
Definition and Usage
The ftp_quit() function closes an FTP connection.
Syntax
ftp_quit(ftp_connection)
| Parameters | Description |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to close. |
Tips and Notes
Tip:This function is an alias of the ftp_close() function.
Example
<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
//some code to be executed
ftp_quit($conn);
?>
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
//some code to be executed
ftp_quit($conn);
?>
Complete PHP FTP Reference Manual Other Extensions