FTP_SYSTYPE(3) 1 FTP_SYSTYPE(3)
ftp_systype - Returns the system type identifier of the remote FTP server
SYNOPSIS
string ftp_systype (resource $ftp_stream)
DESCRIPTION
Returns the system type identifier of the remote FTP server.
PARAMETERS
o $ftp_stream
- The link identifier of the FTP connection.
RETURN VALUES
Returns the remote system type, or FALSE on error.
EXAMPLES
Example #1
ftp_systype(3) example
<?php
// ftp connection
$ftp = ftp_connect('ftp.example.com');
ftp_login($ftp, 'user', 'password');
// get the system type
if ($type = ftp_systype($ftp)) {
echo "Example.com is powered by $type
";
} else {
echo "Couldn't get the systype";
}
?>
The above example will output something similar to:
Example.com is powered by UNIX
PHP Documentation Group FTP_SYSTYPE(3)