mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Correcting an error in the opening description
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@102064 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d7daef6cf3
commit
181e78e533
1 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue