Query: ftp_systype
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FTP_SYSTYPE(3) 1 FTP_SYSTYPE(3) ftp_systype - Returns the system type identifier of the remote FTP serverSYNOPSISstring ftp_systype (resource $ftp_stream)DESCRIPTIONReturns the system type identifier of the remote FTP server.PARAMETERSo $ftp_stream - The link identifier of the FTP connection.RETURN VALUESReturns the remote system type, or FALSE on error.EXAMPLESExample #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)