cvs: phpdoc-zh /reference/bzip2 reference.xml
| From: | Xiaoyu Huang | Date: | Thu, 15 Jul 2004 15:06:27 +0000 |
| Subject: | cvs: phpdoc-zh /reference/bzip2 reference.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1876@lists.php.net to get a copy of this message | ||
class007 Thu Jul 15 11:06:27 2004 EDT
Added files:
/phpdoc-zh/reference/bzip2 reference.xml
Log:
init version
http://cvs.php.net/co.php/phpdoc-zh/reference/bzip2/reference.xml?r=1.1&p=1
Index: phpdoc-zh/reference/bzip2/reference.xml
+++ phpdoc-zh/reference/bzip2/reference.xml
<?xml version="1.0" encoding="GB2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: class007 $ -->
<!-- EN-Revision: 1.5 Maintainer: class007 Status: ready -->
<reference id="ref.bzip2">
<title>Bzip2 ѹËõº¯Êý</title>
<titleabbrev>Bzip2</titleabbrev>
<partintro>
<section id="bzip2.intro">
&reftitle.intro;
<para>
Bzip2 º¯ÊýÓÃÀ´Í¸Ã÷µÄ¶Áд bzip2 (.bz2) ѹËõÎļþ¡£
</para>
</section>
<section id="bzip2.requirements">
&reftitle.required;
<para>
´ËÄ£¿éʹÓà Julian Seward дµÄ <ulink url="&url.bzip2;">bzip2
</ulink> ¿â¡£´ËÄ£¿éÐèÒª bzip2/libbzip2 °æ±¾ >= 1.0.x¡£
</para>
</section>
&reference.bzip2.configure;
<section id="bzip2.configuration">
&reftitle.runtime;
&no.config;
</section>
<section id="bzip2.resources">
&reftitle.resources;
<para>
´ËÀ©Õ¹¶¨ÒåÁËÒ»¸ö×ÊÔ´ÀàÐÍ:
Ò»¸öÎļþÖ¸Õ룬ָÏòÕýÔÚ±»²Ù×÷µÄ bz2 Îļþ¡£
</para>
</section>
<section id="bzip2.constants">
&reftitle.constants;
&no.constants;
</section>
<section id="bzip2.examples">
&reftitle.examples;
<para>
¸ÃÀý×Ó´ò¿ªÒ»ÁÙʱÎļþ£¬²¢Ð´ÈëÒ»²âÊÔ×Ö·û´®£¬È»ºó´òÓ¡ÎļþÄÚÈÝ¡£
</para>
<example>
<title>Bzip2 ʾÀý</title>
<programlisting role="php">
<![CDATA[
<?php
$filename = "/tmp/testfile.bz2";
$str = "This is a test string.\n";
// ´ò¿ªÐ´ÈëÎļþ
$bz = bzopen($filename, "w");
// дÈë×Ö·û´®µ½Îļþ
bzwrite($bz, $str);
// ¹Ø±ÕÎļþ
bzclose($bz);
// ´ò¿ª¶ÁÈ¡Îļþ
$bz = bzopen($filename, "r");
// ¶ÁÈ¡ 10 ¸ö×Ö·û
echo bzread($bz, 10);
// Êä³öÖ±µÀÎļþ½áβ (»òÏÂ1024×Ö½Ú) ²¢¹Ø±ÕËü¡£
echo bzread($bz);
bzclose($bz);
?>
]]>
</programlisting>
</example>
</section>
</partintro>
&reference.bzip2.functions;
</reference>
<!-- 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
-->