当前位置: 首页 > 网络学院 > 服务端脚本教程 > PHP > ftp_close() 函数
The ftp_close() function closes an FTP connection.
The ftp_close()函数的作用是:关闭一个活动的 FTP 连接。
ftp_close(ftp_connection) |
| Parameter 参数 | Description 描述 |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to close 必要参数。指定需要关闭的FTP连接 |
<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
//some code to be executed
ftp_close($conn);
?> |
评论 (0) All