PHP ftp_systype() Fungsi
Contoh
Dapatkan tipe sistem server 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);
?>
Outputnya bisa terlihat seperti ini:
System type is: UNIX
Definisi dan Penggunaan
Fungsi ftp_systype() mengembalikan pengidentifikasi tipe sistem dari server FTP.
Sintaksis
ftp_systype(ftp_conn);
Nilai Parameter
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
Detail Teknis
Nilai Kembali: | Jenis sistem pada keberhasilan, SALAH pada kegagalan |
---|---|
Versi PHP: | 4+ |
Referensi PHP FTP