pollita         Fri Jan 31 00:19:42 2003 EDT

  Added files:                 
    /phpdoc/en/reference/ftp/functions  ftp-raw.xml 

  Modified files:              
    /phpdoc/en/reference/ftp/functions  ftp-exec.xml 
  Log:
  Fixed misdocumentation in ftp_exec(), added documentation for ftp_raw()
  
  
Index: phpdoc/en/reference/ftp/functions/ftp-exec.xml
diff -u phpdoc/en/reference/ftp/functions/ftp-exec.xml:1.4 
phpdoc/en/reference/ftp/functions/ftp-exec.xml:1.5
--- phpdoc/en/reference/ftp/functions/ftp-exec.xml:1.4  Tue Sep 17 05:46:57 2002
+++ phpdoc/en/reference/ftp/functions/ftp-exec.xml      Fri Jan 31 00:19:42 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.32 -->
   <refentry id='function.ftp-exec'>
    <refnamediv>
@@ -15,7 +15,12 @@
      </methodsynopsis>
     <para>
      Sends a SITE EXEC <parameter>command</parameter> request to the FTP
-     server. Returns the output of the command if successful; otherwise returns 
&false;.
+     server. Returns &true; if the command was successful (sever sent response code:
+     <literal>200</literal>); otherwise returns &false;.
+    </para>
+    <para>
+     See Also:
+     <function>ftp_raw</function>
     </para>
    </refsect1>
   </refentry>

Index: phpdoc/en/reference/ftp/functions/ftp-raw.xml
+++ phpdoc/en/reference/ftp/functions/ftp-raw.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
  <refentry id="function.ftp-raw">
   <refnamediv>
    <refname>ftp_raw</refname>
    <refpurpose>Sends an arbitrary command to an FTP server</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>ftp_raw</methodname>
      <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
      <methodparam><type>string</type><parameter>command</parameter></methodparam>
     </methodsynopsis>
    <para>
     Sends an arbitrary <parameter>command</parameter> to the FTP
     server. Returns the server's response as an array of strings.
     No parsing is performed on the response string, nor does 
     <function>ftp_raw</function> determine if the command succeeded.
    </para>
    <para>
     <example>
      <title>Using <function>ftp_raw</function> to login to an FTP server 
manually.</title>
      <programlisting role="php">
<![CDATA[
<?php
$fp = ftp_connect("ftp.example.com");

/* This is the same as: 
   ftp_login($fp, "joeblow", "secret"); */
ftp_raw($fp, "USER joeblow");
ftp_raw($fp, "PASS secret");
?>
]]>
      </programlisting>
     </example>
    </para>
    <para>
     See Also:
     <function>ftp_exec</function>
    </para>
   </refsect1>
  </refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->



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

Reply via email to