PHP ftp_quit()Functions


PHP FTP 参考手册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);
?>


PHP FTP 参考手册Complete PHP FTP Reference Manual Other Extensions