Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP ftp_get_option() Function

PHP ftp_get_option() Function


PHP FTP Reference Manual Complete PHP FTP Reference Manual


Definition and Usage

The ftp_get_option() function returns various runtime options of an FTP connection.

Syntax

ftp_get_option(ftp_connection,option)

Parameters Description
ftp_connection Required. Specifies the FTP connection to use.
option Required. Specifies the runtime option to return. Possible values:
  • FTP_TIMEOUT_SEC - Returns the time limit for network operations
  • FTP_AUTOSEEK - Returns TRUE if this option is set, FALSE otherwise.
  • |

    Example

    The code above will output:

    90


    PHP FTP Reference Manual Complete PHP FTP Reference Manual