PHP ftp_get_option () function
Definition and Usage
Runtime Options The ftp_get_option () function returns a variety of FTP connection.
grammar
ftp_get_option(ftp_connection,option)
参数 | 描述 |
---|---|
ftp_connection | 必需。规定要使用的 FTP 连接。 |
option | 必需。规定要返回的运行时选项。可能的值:
|
Examples
<?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);
?>
$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 code above will output:
90
Complete PHP FTP Reference