PHP ftp_get_option()Fonctions
Manuel de référence complet PHP FTP
Définition et utilisation
La fonction ftp_get_option() renvoie diverses options d'exécution pour une connexion FTP.
Syntaxe
ftp_get_option(ftp_connection,option)
| Parameters | Description |
|---|---|
| ftp_connection | Obligatoire. Spécifie la connexion FTP à utiliser. |
| option | Obligatoire. Spécifie l'option d'exécution à retourner. Valeurs possibles :
|
Exemples
<?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);
?>
Le code ci-dessus affichera :
90
Manuel de référence complet PHP FTP Autres extensions