Contributions are ready for review
| From: | doc-tw at lists dot php dot net | Date: | Mon, 24 Dec 2012 13:00:02 +0000 |
| Subject: | Contributions are ready for review | ||
| Groups: | php.doc.tw | ||
| Request: | Send a blank email to doc-tw+get-192@lists.php.net to get a copy of this message | ||
Hello PHP TW Documentation team,
There are contributions within the online editor queue for this language.
Please review, then commit or delete these patches.
Patches for review :
-----------------------
New file: tw/features/cookies.xml
By: 劉世琪 on 2012-10-18 00:25:51
===================================================================
--- tw/features/cookies.xml
+++ tw/features/cookies.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: $ -->
+<!-- EN-Revision: 297028 Maintainer: 劉世琪 Status: ready -->
+<!-- Reviewed: no Maintainer: 劉世琪 -->
+<!-- Reviewed: no -->
+
+ <chapter xml:id="features.cookies" xmlns="http://docbook.org/ns/docbook">
+ <title>Cookie</title>
+
+ <para>
+ PHP很明顯地支援<acronym>HTTP</acronym>
cookie,Cookie是一種儲存資料在遠端瀏覽器中並以此追蹤和識別返回的使用者的機制,可以用<function>setcookie</function>或
<function>setrawcookie</function>函式來設定cookie,Cookie是<acronym>HTTP</acronym>標頭的一部分,因此<function>setcookie</function>必須在任何輸出送到瀏覽器前被呼叫,這和<function>header</function>有相同的限制,可以使用<link
linkend="ref.outcontrol">輸出緩衝函式</link>來延遲指令碼的輸出直到你決定是否設定所有的cookie或其它的標頭為止。
+ </para>
+
+ <para>
+ 如果<link
linkend="ini.variables-order">variables_order</link>中包括“C”,則任何從客戶端發送的cookie都會被自動包括進<varname>$_COOKIE</varname>自動全域陣列中,如果希望對一個cookie變量設置多個值,則需在cookie的名稱後加<literal>[]</literal>符號。
+ </para>
+
+ <para>
+ 根據<link
linkend="ini.register-globals">register_globals</link>的設置,可以從cookie建立普通的PHP變數,但是不推薦依賴於此特性,因為出於安全原因此選項通常是關閉的。在早期的PHP版本中,當<link
linkend="ini.track-vars">track_vars</link>配置選項打開時(此選項自PHP
4.0.3後總是打開的),系統還會設定<varname>$HTTP_COOKIE_VARS</varname>。
+ </para>
+
+ <para>
+
關於更多細節以及有關瀏覽器問題的注意事項,參見<function>setcookie</function>函式和<function>setrawcookie</function>函式。
+ </para>
+
+ </chapter>
+
+<!-- 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:"~/.phpdoc/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
+-->
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=42205
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=42205
------------------------------------------------------------------
Modified: tw/bookinfo.xml
By: 劉世琪 on 2012-10-21 18:09:14
===================================================================
--- tw/bookinfo.xml
+++ tw/bookinfo.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 328055 $ -->
+<!-- EN-Revision: XX Maintainer: 劉世琪 Status: ready -->
<!-- EN-Revision: n/a Maintainer: coldocean Status: ready -->
<!-- Reviewed: no Maintainer: 劉世琪 -->
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=42258
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=42258
------------------------------------------------------------------
--
https://edit.php.net/
This email is send automatically by the Php Docbook Online Editor.