PHP ftp_close()Functions


PHP FTP 参考手册Complete PHP FTP Reference Manual

Definition and Usage

The ftp_close() function closes an FTP connection.

Syntax

ftp_close(ftp_connection)

Parameters Description
ftp_connection Required. Specifies the FTP connection to close.


Example

<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
//some code to be executed
ftp_close($conn);
?>


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