دالة PHP ftp_systype ()
مثال
احصل على نوع نظام خادم FTP:
<?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);
?>
يمكن أن يبدو الإخراج مثل هذا:
System type is: UNIX
التعريف والاستخدام
ترجع الدالة ftp_systype () معرف نوع النظام لخادم FTP.
بناء الجملة
ftp_systype(ftp_conn);
قيمه المعامل
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
تفاصيل تقنية
قيمة الإرجاع: | نوع النظام على النجاح ، خطأ في الفشل |
---|---|
إصدار PHP: | 4+ |
❮ مرجع PHP FTP