função PHP ftp_get_option ()
Definição e Uso
Opções de tempo de execução A função ftp_get_option () retorna uma variedade de conexão FTP.
gramática
ftp_get_option(ftp_connection,option)
参数 | 描述 |
---|---|
ftp_connection | 必需。规定要使用的 FTP 连接。 |
option | 必需。规定要返回的运行时选项。可能的值:
|
Exemplos
<?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);
?>
O código acima exibirá:
90
Completar PHP FTP Referência