didou           Sat Aug 16 05:12:31 2003 EDT

  Modified files:              
    /phpdoc/en/reference/ftp/functions  ftp-systype.xml 
  Log:
  adding an example
  
Index: phpdoc/en/reference/ftp/functions/ftp-systype.xml
diff -u phpdoc/en/reference/ftp/functions/ftp-systype.xml:1.2 
phpdoc/en/reference/ftp/functions/ftp-systype.xml:1.3
--- phpdoc/en/reference/ftp/functions/ftp-systype.xml:1.2       Wed Apr 17 02:38:17 
2002
+++ phpdoc/en/reference/ftp/functions/ftp-systype.xml   Sat Aug 16 05:12:31 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 -->
   <refentry id="function.ftp-systype">
    <refnamediv>
@@ -14,6 +14,37 @@
      </methodsynopsis>
     <para>
      Returns the remote system type, or &false; on error.
+    </para>
+    <para>
+     <example>
+      <title><function>ftp_systype</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+
+// ftp connection
+$ftp = ftp_connect('ftp.keliglia.com');
+ftp_login($ftp, 'user', 'password');
+
+// get the system type
+if ($type = ftp_systype($ftp)) {
+    echo "Keliglia is powered by $type\n";
+} else {
+    echo "Couldn't get the systype";
+}
+
+?>
+]]>
+      </programlisting>
+      <para>
+       This example will produce
+      </para>
+      <screen>
+<![CDATA[
+Keliglia is powered by UNIX
+]]>
+      </screen>
+     </example>
     </para>
    </refsect1>
   </refentry>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to