Forum und email

ftp_systype

(PHP 4, PHP 5)

ftp_systype — Ermittelt den Systemtyp des entfernten FTP-Servers

Beschreibung:

string ftp_systype ( int $ftp_stream )

Gibt den entfernten Systemtyp zurück bzw. FALSE bei einem Fehler.

Example#1 ftp_systype() Beispiel

<?php

// FTP Verbindung
$ftp ftp_connect('ftp.einhost.de');
ftp_login($ftp'benutzer''passwort');

// Systemtyp abfragen
if ($type ftp_systype($ftp)) {
    echo 
"Einhost.de ist vom Typ $type\n";
} else {
    echo 
"Konnte den Systemtyp nicht bestimmen";
}

?>

Dieses Beispiel gibt bei einem Unix-System folgendes aus

Einhost.de ist vom Typ UNIX