PHP ftp_quit () function
Definition and Usage
ftp_quit () function to close the FTP connection.
grammar
ftp_quit(ftp_connection)
参数 | 描述 |
---|---|
ftp_connection | 必需。规定要关闭的 FTP 连接。 |
Tips and Notes
Tip: This function is an alias ftp_close () function.
Examples
<?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