PHP ftp_get_option() İşlevi
Örnek
Ağ işlemleri için kullanılan zaman aşımını döndürün:
<?php
// connect and login to FTP server
$ftp_server = "ftp.example.com";
$ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server");
$login = ftp_login($ftp_conn, $ftp_username, $ftp_userpass);
// could return 90
echo ftp_get_option($ftp_conn,FTP_TIMEOUT_SEC);
// close connection
ftp_close($ftp_conn);
?>
Tanım ve Kullanım
ftp_get_option() işlevi, geçerli FTP bağlantısının çalışma zamanı seçeneklerini döndürür.
Sözdizimi
ftp_get_option(ftp_conn, option);
Parametre Değerleri
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
option | Required. Specifies the runtime option to return. Possible values:
|
Teknik detaylar
Geri dönüş değeri: | Başarı durumunda değeri veya verilen seçenek desteklenmiyorsa YANLIŞ (ve bir uyarı mesajı) döndürür |
---|---|
PHP Sürümü: | 4.2+ |
❮ PHP FTP Referansı