PHP ftp_systype() İşlevi
Örnek
FTP sunucusunun sistem türünü alı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);
// get system type
if ($type = ftp_systype($ftp_conn))
{
echo "System type is: $type";
}
else
{
echo "Could not get system type.";
}
// close connection
ftp_close($ftp_conn);
?>
Çıktı şöyle görünebilir:
System type is: UNIX
Tanım ve Kullanım
ftp_systype() işlevi, FTP sunucusunun sistem türü tanımlayıcısını döndürür.
Sözdizimi
ftp_systype(ftp_conn);
Parametre Değerleri
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
Teknik detaylar
Geri dönüş değeri: | Başarı durumunda sistem türü, başarısızlık durumunda FALSE |
---|---|
PHP Sürümü: | 4+ |
❮ PHP FTP Referansı