Latest web development tutorials

PHP ftp_quit () function

PHP FTP Reference Complete PHP FTP Reference

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);
?>


PHP FTP Reference Complete PHP FTP Reference