philip          Wed Aug  4 10:14:02 2004 EDT

  Modified files:              
    /phpdoc/en/faq      using.xml 
  Log:
  Added faq about shorthand byte notation, and where it can and cannot be used.
  This deals with bug #22158
  
  
http://cvs.php.net/diff.php/phpdoc/en/faq/using.xml?r1=1.29&r2=1.30&ty=u
Index: phpdoc/en/faq/using.xml
diff -u phpdoc/en/faq/using.xml:1.29 phpdoc/en/faq/using.xml:1.30
--- phpdoc/en/faq/using.xml:1.29        Tue Jan  6 09:35:35 2004
+++ phpdoc/en/faq/using.xml     Wed Aug  4 10:14:01 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.29 $ -->
+<!-- $Revision: 1.30 $ -->
 <chapter id="faq.using">
   <title>Using PHP</title>
   <titleabbrev>Using PHP</titleabbrev>
@@ -383,6 +383,28 @@
      
      &note.superglobals;
 
+    </answer>
+   </qandaentry>
+
+   <qandaentry id="faq.using.shorthandbytes">
+    <question>
+     <para>
+      A few PHP directives may also take on shorthand byte values, as opposed
+      to only <type>integer</type> byte values.  What are all the available
+      shorthand byte options?  And can I use these outside of &php.ini;?
+     </para>
+    </question>
+    <answer>
+     <para>
+      The available options are K (for kilobytes) and M (for megabytes), these
+      are case insensitive.  Anything else assumes bytes.  For example the
+      default value of <link linkend="ini.post-max-size">post_max_size</link>
+      is <literal>8M</literal> which stands for 8 Megabytes or 
+      <literal>8388608</literal> bytes.  You may not use these shorthand
+      notations outside of &php.ini;, instead use an <type>integer</type> 
+      value of bytes.  See the <function>ini_get</function> documentation for
+      an example on how to convert these values.
+     </para>
     </answer>
    </qandaentry>
 

Reply via email to