Some cosmetic changes.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@30340 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Egon Schmid 2000-08-16 00:01:46 +00:00
parent 3bc1986d7f
commit 64c640e8bc

View file

@ -79,13 +79,13 @@ header ("Pragma: no-cache"); // HTTP/1.0
</programlisting>
</informalexample>
</para>
<para>
See also <function>headers_sent</function>
</para>
<para>
See also <function>headers_sent</function>
</para>
</refsect1>
</refentry>
<refentry id="function.headers-sent">
<refentry id="function.headers-sent">
<refnamediv>
<refname>header_sent</refname>
<refpurpose>Returns true if headers have been sent</refpurpose>
@ -99,17 +99,15 @@ header ("Pragma: no-cache"); // HTTP/1.0
</funcprototype>
</funcsynopsis>
<para>
This function returns true if the HTTP headers have already been sent,
false otherwise.
This function returns true if the HTTP headers have already been
sent, false otherwise.
</para>
<para>
See also <function>header</function>
</para>
<para>
See also <function>header</function>
</para>
</refsect1>
</refentry>
<refentry id="function.setcookie">
<refnamediv>
<refname>setcookie</refname>
@ -121,15 +119,25 @@ header ("Pragma: no-cache"); // HTTP/1.0
<funcprototype>
<funcdef>int <function>setcookie</function></funcdef>
<paramdef>string <parameter>name</parameter></paramdef>
<paramdef>string <parameter><optional>value</optional></parameter></paramdef>
<paramdef>int <parameter><optional>expire</optional></parameter></paramdef>
<paramdef>string <parameter><optional>path</optional></parameter></paramdef>
<paramdef>string <parameter><optional>domain</optional></parameter></paramdef>
<paramdef>int <parameter><optional>secure</optional></parameter></paramdef>
<paramdef>string
<parameter><optional>value</optional></parameter>
</paramdef>
<paramdef>int
<parameter><optional>expire</optional></parameter>
</paramdef>
<paramdef>string
<parameter><optional>path</optional></parameter>
</paramdef>
<paramdef>string
<parameter><optional>domain</optional></parameter>
</paramdef>
<paramdef>int
<parameter><optional>secure</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>setcookie</function> defines a cookie to be sent along
<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
@ -178,7 +186,7 @@ header ("Pragma: no-cache"); // HTTP/1.0
<para>
Some examples follow how to send cookies:
<example>
<title><function>setcookie</function> send examples</title>
<title><function>Setcookie</function> send examples</title>
<programlisting role="php">
setcookie ("TestCookie", "Test Value");
setcookie ("TestCookie", $value,time()+3600); /* expire in 1 hour */
@ -192,8 +200,8 @@ setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".utoronto.ca", 1);
<title><function>setcookie</function> delete examples</title>
<programlisting role="php">
setcookie ("TestCookie");
setcookie ("TestCookie", "",time());
setcookie ("TestCookie", "",time(), "/~rasmus/", ".utoronto.ca", 1);
setcookie ("TestCookie", "", time());
setcookie ("TestCookie", "", time(), "/~rasmus/", ".utoronto.ca", 1);
</programlisting>
</example>
</para>