cvs: phpdoc /en/reference/http/functions setcookie.xml
| From: | Friedhelm Betz | Date: | Thu, 06 Feb 2003 10:07:24 +0000 |
| Subject: | cvs: phpdoc /en/reference/http/functions setcookie.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969351636@lists.php.net to get a copy of this message | ||
betz Thu Feb 6 05:07:24 2003 EDT
Modified files:
/phpdoc/en/reference/http/functions setcookie.xml
Log:
note about output buffering added
Index: phpdoc/en/reference/http/functions/setcookie.xml
diff -u phpdoc/en/reference/http/functions/setcookie.xml:1.18
phpdoc/en/reference/http/functions/setcookie.xml:1.19
--- phpdoc/en/reference/http/functions/setcookie.xml:1.18 Mon Jan 27 22:02:39 2003
+++ phpdoc/en/reference/http/functions/setcookie.xml Thu Feb 6 05:07:23 2003
@@ -1,6 +1,5 @@
-
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.18 $ -->
+<!-- $Revision: 1.19 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.2 -->
<refentry id="function.setcookie">
<refnamediv>
@@ -30,6 +29,16 @@
If <function>setcookie</function> successfully runs, it will return
&true;. This does not indicate whether the user accepted the cookie.
</para>
+ <note>
+ <para>
+ In PHP 4, you can use output buffering to send output prior to the call
+ of this function, with the overhead of all of your output to the browser
+ being buffered in the server until you send it. You can do this by calling
+ <function>ob_start</function> and <function>ob_end_flush</function>
+ in your script, or setting the <literal>output_buffering</literal>
+ configuration directive on in your &php.ini; or server configuration files.
+ </para>
+ </note>
<para>
All the arguments except the <parameter>name</parameter> argument
are optional. If only the name argument is present, the cookie