ftp_close
(PHP 4 >= 4.2.0, PHP 5)
ftp_close -- 关闭一个 FTP 连接
说明
bool
ftp_close ( resource ftp_stream )
ftp_close() 关闭给出的连接标识符并释放资源。
返回值
如果成功则返回 TRUE,失败则返回 FALSE。
范例
例 1. ftp_close() 例子
<?php
// set up basic connection $conn_id = ftp_connect($ftp_server);
// login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// print the current directory echo ftp_pwd($conn_id); // /
// close this connection ftp_close($conn_id); ?>
|
|