Latest web development tutorials

PHP ftp_close () function

PHP FTP Reference Complete PHP FTP Reference

Definition and Usage

ftp_close () function to close the FTP connection.

grammar

ftp_close(ftp_connection)

参数 描述
ftp_connection 必需。规定要关闭的 FTP 连接。


Examples

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


PHP FTP Reference Complete PHP FTP Reference