The ftp_systype() function returns the system type identifier of the FTP server.
If successful, the function returns the system type. If it fails, returns FALSE.
ftp_systype(ftp_connection)
parameter | describe |
---|---|
ftp_connection | Required. Specifies the FTP connection to use. |
<?php$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");ftp_login($conn,"admin","ert456");echo ftp_systype($conn);ftp_close($ conn);?>
The above code will output:
UNIX