Home > PHP > Function > FTP > ftp_close()

ftp_close()

ftp_close - Closes an FTP connection

Syntax

bool ftp_close (resource $ftp_stream)

Arguments

  • ftp_stream - The link identifier of the FTP connection.

Description

ftp_close() closes the given link identifier and releases the resource.

Version

PHP 4.2.0, 5

Return value

Returns TRUE on success or FALSE on failure.