cvs: phpdoc-zh /reference/ftp/functions ftp-size.xml
| From: | bole Chen | Date: | Mon, 21 Apr 2008 07:26:19 +0000 |
| Subject: | cvs: phpdoc-zh /reference/ftp/functions ftp-size.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2987@lists.php.net to get a copy of this message | ||
avenger Mon Apr 21 07:26:19 2008 UTC
Modified files:
/phpdoc-zh/reference/ftp/functions ftp-size.xml
Log:
up to date
http://cvs.php.net/viewvc.cgi/phpdoc-zh/reference/ftp/functions/ftp-size.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc-zh/reference/ftp/functions/ftp-size.xml
diff -u phpdoc-zh/reference/ftp/functions/ftp-size.xml:1.3
phpdoc-zh/reference/ftp/functions/ftp-size.xml:1.4
--- phpdoc-zh/reference/ftp/functions/ftp-size.xml:1.3 Sat Jun 23 13:32:46 2007
+++ phpdoc-zh/reference/ftp/functions/ftp-size.xml Mon Apr 21 07:26:19 2008
@@ -1,15 +1,13 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.3 $ -->
-<!-- $Author: bjori $ -->
-<!-- EN-Revision: 1.4 Maintainer: Avenger Status: ready -->
-<!-- CREDITS: dallas -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.8 Maintainer: Avenger Status: ready -->
<refentry xml:id="function.ftp-size" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>ftp_size</refname>
<refpurpose>·µ»ØÖ¸¶¨ÎļþµÄ´óС</refpurpose>
</refnamediv>
- <refsect1>
- <title>˵Ã÷</title>
+ <refsect1 role="description">
+ &reftitle.description;
<methodsynopsis>
<type>int</type><methodname>ftp_size</methodname>
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
@@ -20,9 +18,43 @@
<parameter>remote_file</parameter>
µÄ´óС¡£Èç¹ûÖ¸¶¨Îļþ²»´æÔÚ»ò·¢Éú´íÎó£¬Ôò·µ»Ø
-1¡£ÓÐЩ FTP ·þÎñÆ÷¿ÉÄܲ»Ö§³Ö´ËÌØÐÔ¡£
</para>
- <para>
- »ñÈ¡³É¹¦·µ»ØÎļþ´óС£¬·ñÔò·µ»Ø -1¡£
+ <note>
+ <para>
+ »ñÈ¡³É¹¦·µ»ØÎļþ´óС£¬·ñÔò·µ»Ø -1¡£
</para>
+ </note>
+ </refsect1>
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>ftp_stream</parameter></term>
+ <listitem>
+ <para>
+ FTP Á¬½Ó×ÊÔ´¡£
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>remote_file</parameter></term>
+ <listitem>
+ <para>
+ Ô¶³ÌÎļþ¡£
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+ <refsect1 role-"returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Ö´Ðгɹ¦·µ»ØÎļþ´óС£¬Ê§°Ü·µ»Ø -1¡£
+ </para>
+ </refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
<para>
<example>
<title><function>ftp_size</function> Àý×Ó</title>
@@ -31,10 +63,13 @@
<?php
$file = 'somefile.txt';
-// connect to the server
+// set up basic connection
$conn_id = ftp_connect($ftp_server);
+
+// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
+// get the size of $file
$res = ftp_size($conn_id, $file);
if ($res != -1) {
@@ -43,15 +78,21 @@
echo "couldn't get the size";
}
+//close the conntion
ftp_close($conn_id);
?>
]]>
</programlisting>
</example>
</para>
- <para>
- ²Î¼û <function>ftp_rawlist</function>¡£
- </para>
+ </refsect1>
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>ftp_rawlist</function></member>
+ </simplelist>
+ </para>
</refsect1>
</refentry>