cvs: phpdoc-zh /reference/outcontrol reference.xml
| From: | ��� | Date: | Tue, 13 May 2003 05:59:43 +0000 |
| Subject: | cvs: phpdoc-zh /reference/outcontrol reference.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1447@lists.php.net to get a copy of this message | ||
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
µÄʱºòûÓе¼Ö´íÎó¡££¨
ͨ³£Çé¿öÏ£¬ÒѾÓÐÊý¾ÝÊä³öºó£¬ÊDz»ÄÜÕý³£µÄÏòä¯ÀÀÆ÷·¢ËÍÍ·ÐÅÏ¢µÄ¡££©
</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
-->