PHP ftp_systype() Function

Definition and Usage

The ftp_systype() function returns the system type identifier of the remote FTP server.

This function returns the system type of the remote server. If an error occurs, it returns false.

Syntax

ftp_systype(ftp_connection)
Parameter Description
ftp_connection Required. Specifies the FTP connection to use (the identifier for the FTP connection).

Example

<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");
echo ftp_systype($conn);
ftp_close($conn);
?>

Output similar to:

UNIX