PHP ftp_get_option( ) FunctionThe ftp_get_option() function is used to retrieve various runtime behaviours of the current FTP stream. This function was introduced in PHP 4.2.0. Syntax:
Return value:The ftp_get_option() function returns the value on success or FALSE if the given option is not supported. In the latter case, a warning message is also thrown. Example 1ExplanationIn the above example, with the help of ftp_get_option() function we can get the various runtime behaviours of the current FTP stream. Example 2ExplanationIn the above example, with the help of ftp_get_option() function we can get the timeout used for network operations.
Next TopicPHP FTP
|