cvs: phpdoc-de /reference/ftp/functions ftp-systype.xml

From: Date: Sat, 16 Aug 2003 12:48:02 +0000
Subject: cvs: phpdoc-de /reference/ftp/functions ftp-systype.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-877@lists.php.net to get a copy of this message
ali Sat Aug 16 08:48:02 2003 EDT Modified files: /phpdoc-de/reference/ftp/functions ftp-systype.xml Log: syncing & fixed logical error Index: phpdoc-de/reference/ftp/functions/ftp-systype.xml diff -u phpdoc-de/reference/ftp/functions/ftp-systype.xml:1.2 phpdoc-de/reference/ftp/functions/ftp-systype.xml:1.3 --- phpdoc-de/reference/ftp/functions/ftp-systype.xml:1.2 Sun Jun 9 06:55:40 2002 +++ phpdoc-de/reference/ftp/functions/ftp-systype.xml Sat Aug 16 08:48:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./de/functions/ftp.xml, last change in rev 1.2 --> <!-- last change to 'ftp-systype' in en/ tree in rev 1.2 --> <refentry id="function.ftp-systype"> @@ -16,8 +16,39 @@ <methodparam><type>int</type><parameter>ftp_stream</parameter></methodparam> </methodsynopsis> <para> - Gibt den entfernten Systemtyp an bzw. &false; bei einem Fehler. + Gibt den entfernten Systemtyp zurück bzw. &false; bei einem Fehler. </para> + <para> + <example> + <title><function>ftp_systype</function> Beispiel</title> + <programlisting role="php"> +<![CDATA[ +<?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"; +} + +?> +]]> + </programlisting> + <para> + Dieses Beispiel gibt bei einem Unix-System folgendes aus + </para> + <screen> +<![CDATA[ +Einhost ist vom Typ UNIX +]]> + </screen> + </example> + </para> </refsect1> </refentry>

« previous php.doc.de (#877) next »