ftp_get_option
ftp_get_option
Retrieves various runtime behaviours of the current FTP connection
**ftp_get_option** FTP\Connection $ftp int $option
This function returns the value for the requested
from the specified FTP connection.
option
ftp``optionCurrently, the following options are supported:
Returns the value on success or false if the given
is not supported. In the latter case, a
warning message is also thrown.
option
Voorbeeld: example
<?php
// Get the timeout of the given FTP connection
$timeout = ftp_get_option($ftp, FTP_TIMEOUT_SEC);
?>
ftp_set_option