For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2006 > cvs: phpdoc /en/faq misc.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/faq misc.xml
Philip Olson

2006-04-28, 6:58 pm

philip Fri Apr 28 17:05:47 2006 UTC

Modified files:
/phpdoc/en/faq misc.xml
Log:
Refer to variables_order and sessions in the "emulate register_globals" faq


http://cvs.php.net/viewcvs.cgi/phpd...7&diff_format=u
Index: phpdoc/en/faq/misc.xml
diff -u phpdoc/en/faq/misc.xml:1.26 phpdoc/en/faq/misc.xml:1.27
--- phpdoc/en/faq/misc.xml:1.26 Thu Aug 18 20:49:16 2005
+++ phpdoc/en/faq/misc.xml Fri Apr 28 17:05:47 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.26 $ -->
+<!-- $Revision: 1.27 $ -->
<chapter id="faq.misc">
<title>Miscellaneous Questions</title>
<titleabbrev>Miscellaneous Questions</titleabbrev>
@@ -126,7 +126,9 @@
<example>
<title>Emulating Register Globals</title>
<para>
- This will emulate register_globals On.
+ This will emulate register_globals On. If you altered your
+ <link linkend="ini.variables-order">variables_order</link> directive,
+ consider changing the <varname>$superglobals</varname> accordingly.
</para>
<programlisting role="php">
<![CDATA[
@@ -146,7 +148,9 @@
]]>
</programlisting>
<para>
- This will emulate register_globals Off. Keep in mind, that this code should be called in the very beginning of your script.
+ This will emulate register_globals Off. Keep in mind, that this code
+ should be called at the very beginning of your script, or after
+ <function>session_start</function> if you use it to start your session.
</para>
<programlisting role="php">
<![CDATA[
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com