FTP Functions
PHP Manual

ftp_systype

(PHP 4, PHP 5)

ftp_systypeبازگرداندن شناساگر نوع سیستم سرور از راه دور FTP

Description

string ftp_systype ( resource $ftp_stream )

بازگرداندن شناساگر نوع سیستم سرور از راه دور FTP.

Parameters

ftp_stream

شناساگر پیوند اتصال FTP.

Return Values

بازگرداندن نوع سیستم از راه دور یا FALSE در صورت خطا.

Examples

Example #1 مثال ftp_systype()

<?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\n";
} else {
    echo 
"Couldn't get the systype";
}

?>

The above example will output something similar to:

Example.com is powered by UNIX


FTP Functions
PHP Manual