PHP ftp_systype()Functions
Complete PHP FTP Reference Manual
Definition and Usage
The ftp_systype() function returns the system type identifier of the FTP server.
If successful, the function returns the system type. If it fails, it returns FALSE.
Syntax
ftp_systype(ftp_connection)
| Parameters | Description |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to use. |
Example
<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");
echo ftp_systype($conn);
ftp_close($conn);
?>
$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
Complete PHP FTP Reference Manual Other Extensions