cvs: phpdoc-pl /reference/session/functions session-register.xml
| From: | Leszek Krupinski | Date: | Tue, 18 Jun 2002 05:57:16 +0000 |
| Subject: | cvs: phpdoc-pl /reference/session/functions session-register.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969346574@lists.php.net to get a copy of this message | ||
leszek Tue Jun 18 01:57:16 2002 EDT
Modified files:
/phpdoc-pl/reference/session/functions session-register.xml
Log:
[leszek] Updated to EN 1.4
Index: phpdoc-pl/reference/session/functions/session-register.xml
diff -u phpdoc-pl/reference/session/functions/session-register.xml:1.4
phpdoc-pl/reference/session/functions/session-register.xml:1.5
--- phpdoc-pl/reference/session/functions/session-register.xml:1.4 Fri May 17 09:50:52 2002
+++ phpdoc-pl/reference/session/functions/session-register.xml Tue Jun 18 01:57:15 2002
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.2 Maintainer: leszek Status: ready -->
-<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.4 Maintainer: leszek Status: ready -->
+<!-- $Revision: 1.5 $ -->
<refentry id="function.session-register">
<refnamediv>
<refname>session_register</refname>
@@ -33,8 +33,8 @@
<caution>
<para>
Przy u¿yciu
- <varname>$HTTP_SESSION_VARS</varname>/<varname>$_SESSION</varname>
nie
- powinno siê u¿ywaæ <function>session_register</function>,
+ <varname>$_SESSION</varname> (lub
<varname>$HTTP_SESSION_VARS</varname>)
+ nie powinno siê u¿ywaæ <function>session_register</function>,
<function>session_is_registered</function> i
<function>session_unregister</function>.
</para>
@@ -49,19 +49,19 @@
<function>session_start</function> bez ¿adnych parametrów.
</para>
<para>
- Mo¿esz tworzyæ zmienne sesyjne poprostu przez dopisywanie odpowiednicz
- wpisów do tablic <varname>$HTTP_SESSION_VARS</varname> lub
- <varname>$_SESSION</varname> (PHP >= 4.1.0).
+ Mo¿esz tworzyæ zmienne sesyjne po prostu przez dopisywanie odpowiednich
+ wpisów do tablic <varname>$_SESSION</varname> lub
+ <varname>$HTTP_SESSION_VARS</varname> (PHP < 4.1.0).
<informalexample>
<programlisting role="php">
<![CDATA[
$barney = "Du¿y fioletowy dinozaur.";
session_register("barney");
-$HTTP_SESSION_VARS["zim"] = "Naje¼d¼ca z innej planety.";
+$_SESSION["zim"] = "Naje¼d¼ca z innej planety.";
-# tablica $_SESSION typu auto-global zosta³a wprowadzona w PHP 4.1.0
-#_SESSION["spongebob"] = "Ma kwadratowe spodnie.";
+# Stara metoda opiera siê o $HTTP_SESSION_VARS
+$HTTP_SESSION_VARS["spongebob"] = "Ma kwadratowe spodnie.";
]]>
</programlisting>
</informalexample>