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

PHP ftp_set_option() Function

PHP ftp_set_option() Function


PHP FTP Reference Manual Complete PHP FTP Reference Manual


Definition and Usage

The ftp_set_option() function sets various runtime options of an FTP connection.

Returns TRUE on success, or FALSE on failure.

Syntax

ftp_set_option(ftp_connection,option,value)

Parameters Description
ftp_connection Required. Specifies the FTP connection to use.
option Required. Specifies the runtime option to set. Possible values:
  • FTP_TIMEOUT_SEC
  • FTP_AUTOSEEK
  • | | value | Required. Sets the value of the option parameter.

    If the option parameter is set to FTP_TIMEOUT_SEC, it limits the maximum execution time of network operations (in seconds).

    If the option parameter is set to FTP_AUTOSEEK, this parameter must be TRUE (enable auto-seeking) or FALSE (disable auto-seeking).

    |

    Example


    PHP FTP Reference Manual Complete PHP FTP Reference Manual