Latest web development tutorials

PHP ftp_systype () function

PHP FTP Reference Complete PHP FTP Reference

Definition and Usage

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

If successful, the function returns the system type. If it fails, it returns FALSE.

grammar

ftp_systype(ftp_connection)

参数 描述
ftp_connection 必需。规定要使用的 FTP 连接。


Examples

<?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 code above will output:

UNIX


PHP FTP Reference Complete PHP FTP Reference