Home  >  Article  >  Backend Development  >  How to use php ftp_quit function

How to use php ftp_quit function

藏色散人
藏色散人Original
2019-05-27 14:27:512447browse

php The ftp_quit function is used to close the FTP connection. Its syntax is ftp_quit(ftp_connection). The parameter ftp_connection is required and refers to the FTP connection to be closed.

How to use php ftp_quit function

php How to use the ftp_quit function?

Definition and Usage

The ftp_quit() function closes the FTP connection.

Syntax

ftp_quit(ftp_connection)

Parameters

ftp_connection Required. Specifies the FTP connection to close.

Tips and Notes

Tips: This function is an alias of the ftp_close() function.

Example

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

The above is the detailed content of How to use php ftp_quit function. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn