cortesi         Sat May  4 08:16:01 2002 EDT

  Modified files:              
    /phpdoc/en/faq      using.xml 
  Log:
  fixing problem with mixed up answer
  fixing function name: set_cookie
  
  
Index: phpdoc/en/faq/using.xml
diff -u phpdoc/en/faq/using.xml:1.16 phpdoc/en/faq/using.xml:1.17
--- phpdoc/en/faq/using.xml:1.16        Thu Mar 28 12:16:36 2002
+++ phpdoc/en/faq/using.xml     Sat May  4 08:16:01 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.16 $ -->
+<!-- $Revision: 1.17 $ -->
 <chapter id="faq.using">
   <title>Using PHP</title>
   <titleabbrev>Using PHP</titleabbrev>
@@ -123,20 +123,11 @@
     </question>
     <answer>
      <para>
-      The functions <function>header</function>,
-      <function>set_cookie</function> and the session functions need to add
-      headers to the output stream. Headers can only be sent before all other
-      content.  function will do this if 
-      you are running PHP as an Apache module. So, the following bit
-      of code will show you all the request headers:
-      <programlisting role="php">
-<![CDATA[
-$headers = getallheaders();
-foreach ($headers as $name => $content) {
-    echo "headers[$name] = $content<br>\n";
-}
-]]>
-      </programlisting>
+      The functions <function>header</function>, 
+      <function>setcookie</function> and the session functions need to add
+      headers to the output stream. But headers can only be sent before all other
+      content, check if your script is sending headers after having already sent 
+      content.
      </para>
     </answer>
    </qandaentry>


Reply via email to