Re: phpdoc-zh /reference/outcontrol reference.xml
| From: | Dallas Thunder | Date: | Tue, 13 May 2003 19:35:03 +0000 |
| Subject: | Re: phpdoc-zh /reference/outcontrol reference.xml | ||
| References: | 1 | Groups: | php.doc.zh |
| Request: | Send a blank email to doc-zh+get-1448@lists.php.net to get a copy of this message | ||
欢迎加入!
不过 <titleabbrev>
这里还是保持英文原样吧。这样对于按照字母顺序检索方便一
些。
还有中文标点符号前后不要空格,也不换行,具体请阅读 readme.first 文件。
"周皓" <zhouhaolovesummer@hotmail.com> wrote in message
news:cvszhouhao0071052805583@cvsserver...
> zhouhao007 Tue May 13 01:59:43 2003 EDT
>
> Added files:
> /phpdoc-zh/reference/outcontrol reference.xml
> Log:
> 开始翻译 输出控制
>
>
> Index: phpdoc-zh/reference/outcontrol/reference.xml
> +++ phpdoc-zh/reference/outcontrol/reference.xml
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!-- $Revision: 1.1 $ -->
> <reference id="ref.outcontrol">
> <title>输出控制函数</title>
> <titleabbrev>输出控制</titleabbrev>
>
> <partintro>
> <section id="outcontrol.intro">
> &reftitle.intro;
> <para>
>
> 你可以使用输出控制函数来控制脚本产生的输出信息。这些函数在几种特殊情
况下
>
> 会很有用,特别是在脚本中已经有了输出信息之后,再想向浏览器发送头信息的情
况。
> 输出控制函数不会作用于
> <function>header</function> 或
> <function>setcookie</function>函数发送
的头信息,
> 而只会影响 <function>echo</function>
> 函数的输出信息和嵌入在PHP代码之
间的信息。
> </para>
> </section>
>
> <section id="outcontrol.requirements">
> &reftitle.required;
> &no.requirement;
> </section>
>
> <section id="outcontrol.installation">
> &reftitle.install;
> &no.install;
> </section>
>
> &reference.outcontrol.ini;
>
> <section id="outcontrol.resources">
> &reftitle.resources;
> &no.resource;
> </section>
>
> <section id="outcontrol.constants">
> &reftitle.constants;
> &no.constants;
> </section>
>
> <section id="outcontrol.examples">
> &reftitle.examples;
> <para>
> <example>
> <title>输出控制范例</title>
> <programlisting role="php">
> <![CDATA[
> <?php
>
> ob_start();
> echo "Hello\n";
>
> setcookie ("cookiename", "cookiedata");
>
> ob_end_flush();
>
> ?>
> ]]>
> </programlisting>
> </example>
> </para>
> <para>
> 在上面的例子中,函数 <function>echo</function>
> 输出信息将被保存在
> 输出缓冲中,直到
> <function>ob_end_flush</function> 函数被调用。和期望的一样,
> <function>setcookie</function> 函数存储 cookie
> 的时候没有导致错误。(
>
> 通常情况下,已经有数据输出后,是不能正常的向浏览器发送头信息的。)
> </para>
> <note>
> <para>
> 当从 PHP 4.1 (包括 4.2) 升级到 4.3 时,由于早期版本的 bug ,必须确保
> 在 &php.ini; 中将<literal>implict_flush</literal> 被设置成
<literal>OFF</literal> ,
> 否则所有由
> <function>ob_start</function> 函数处理的信息都会被直接输出.
> </para>
> </note>
> </section>
>
> <section id="outcontrol.seealso">
> &reftitle.seealso;
> <para>
> 相关函数:<function>header</function> and
> <function>setcookie</function>.
> </para>
> </section>
> </partintro>
>
> &reference.outcontrol.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
> -->
>
>
>