ftp_set_option
ftp_set_option
Set miscellaneous runtime FTP options
true **ftp_set_option** FTP\Connection $ftp int $option $value
This function controls various runtime options for the specified FTP connection.
ftp``optionCurrently, the following options are supported:
value
This parameter depends on which is chosen
to be altered.
option
return.true.always
A is thrown if the
is not supported. A is thrown if the passed
doesn't match the expected type for the given .
option``value``option
Voorbeeld: example
<?php
// Set the network timeout to 10 seconds
ftp_set_option($ftp, FTP_TIMEOUT_SEC, 10);
?>
ftp_get_option