shiflett Wed Oct 30 22:38:55 2002 EDT Modified files: /phpdoc/en/reference/http/functions setcookie.xml Log: Correcting an error in the opening description Index: phpdoc/en/reference/http/functions/setcookie.xml diff -u phpdoc/en/reference/http/functions/setcookie.xml:1.4 phpdoc/en/reference/http/functions/setcookie.xml:1.5 --- phpdoc/en/reference/http/functions/setcookie.xml:1.4 Tue Jul 16 12:52:32 2002 +++ phpdoc/en/reference/http/functions/setcookie.xml Wed Oct 30 22:38:55 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/http.xml, last change in rev 1.2 --> <refentry id="function.setcookie"> <refnamediv> @@ -19,15 +19,15 @@ </methodsynopsis> <para> <function>setcookie</function> defines a cookie to be sent along - with the rest of the header information. Cookies must be sent - <emphasis>before</emphasis> any other headers are sent (this is a - restriction of cookies, not PHP). This requires you to place - calls to this function before any <literal><html></literal> or - <literal><head></literal> tags. If headers exist prior to - calling this function, <function>setcookie</function> will fail - and return &false;. If <function>setcookie</function> successfully - runs, it will return &true; This does not mean the user accepted - the cookie or not. + with the rest of the HTTP headers. Like other headers, cookies + must be sent <emphasis>before</emphasis> any output from your + script (this is a protocol restriction). This requires that you + place calls to this function prior to any output, including + <literal><html></literal> and <literal><head></literal> tags + as well as any whitespace. If output exists prior to calling this + function, <function>setcookie</function> will fail and return &false;. + If <function>setcookie</function> successfully runs, it will return + &true;. This does not indicate whether the user accepted the cookie. </para> <para> All the arguments except the <parameter>name</parameter> argument
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php