Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

ftp_systype

(PHP 3>= 3.0.13, 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.

Beispiel 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

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "PHP Handbuch". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.