リモート FTP サーバーのシステム型 ID を返す
$ftp
リモート FTP サーバーのシステム型 ID を返します。
ftp
FTP\Connection クラスのインスタンス
リモートシステム型を返します。エラー時には false を返します。
false
例1 ftp_systype の例
<?php // 接続を確立する $ftp = ftp_connect('ftp.example.com'); ftp_login($ftp, 'user', 'password'); // システム型を取得する if ($type = ftp_systype($ftp)) { echo "Example.com is powered by $type\n"; } else { echo "Couldn't get the systype"; } ?>
上の例の出力は、 たとえば以下のようになります。
Example.com is powered by UNIX