PHP ftp_set_option() Function
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:
|
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
Complete PHP FTP Reference Manual