WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP ftp_get_option () function


Definition and usage

The ftp_get_option () function returns various runtime options for FTP connections.

Syntax

ftp_get_option (ftp_connection, option)

parameters description
ftp_connection Required. Specifies the FTP connection to use.
option Required. Specifies the runtime options to return. Possible values:
  • FTP_TIMEOUT_SEC-return time limit for network operations
  • FTP_AUTOSEEK-Returns TRUE if this option is set, otherwise FALSE.


Example

<?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