PHP Dokumentation: Function ftp-systype
12. Januar 2010 von werner
ftp_systype
(PHP 4, PHP 5)
ftp_systype — Gibt den Systemtyp des entfernten FTP-Servers zurück
Beschreibung
Gibt den Systemtyp zurück des entfernten FTP-Servers zurück.
Parameter-Liste
- ftp_stream
Der Verbindungshandler der FTP-Verbindung.
Rückgabewerte
Returns the remote system type, or FALSE on error.
Beispiele
Beispiel #1 ftp_systype()-Beispiel
<?php// Verbindung aufbauen
$ftp = ftp_connect('ftp.example.com');
ftp_login($ftp, 'user', 'password');// Systemtyp abfragen
if ($type = ftp_systype($ftp)) {
echo "Example.com ist vom Typ $type\n";
} else {
echo "Konnte den Systemtyp nicht bestimmen";
}?>Das oben gezeigte Beispiel erzeugteine ähnliche Ausgabe wie:
Example.com ist vom Typ UNIX