The ftp_get_option() function returns various runtime options for the FTP connection.
ftp_get_option(ftp_connection,option)
parameter | describe |
---|---|
ftp_connection | Required. Specifies the FTP connection to use. |
option | Required. Specifies runtime options to be returned. Possible values: FTP_TIMEOUT_SEC - Returns the time limit for network operations FTP_AUTOSEEK - Returns TRUE if this option is set, FALSE otherwise. |
<?php$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");ftp_login($conn,"admin","ert456");echo ftp_get_option($conn,FTP_TIMEOUT_SEC);ftp_close ($conn);?>
The above code will output:
90