PHP ftp_get_option() Function

PHP FTP Reference : Return the timeout used for network operations

Definition and Usage

The ftp_get_option() function returns runtime options of the current FTP connection.

Syntax

ftp_get_option(ftp_conn, option);

Parameter Values

Parameter Description
ftp_conn Required. Specifies the FTP connection to use
option Required. Specifies the runtime option to return. Possible values:
  • FTP_TIMEOUT_SEC - Returns the timeout used for network operations
  • FTP_AUTOSEEK - Returns TRUE if this option is on, FALSE otherwise

Technical Details

Return Value: Returns the value on success, or FALSE (and a warning message) if the given option is not supported
PHP Version: 4.2+

❮ PHP FTP Reference