The ftp_systype() function returns the system type identifier of the FTP server.
Syntax
ftp_systype(con);
Parameters
con − The FTP connection
Return
The ftp_systype() function returns the system type on success, or FALSE on failure.
Example
The following is an example −
<?php $ftp_server = "192.168.0.4"; $ftp_user = "jacob"; $ftp_pass = "tywg61gh"; $conn = ftp_ssl_connect($ftp_server) or die("Could not connect to $ftp_server"); $login = ftp_login($conn, $ftp_user, $ftp_pass); if ($t = ftp_systype($conn)){ echo "System type = $t"; } else { echo "Cannot get the type!"; } ftp_close($ftp_conn); ?>