From 64c640e8bc56dc89cd2e110c3bf68387163e3777 Mon Sep 17 00:00:00 2001 From: Egon Schmid Date: Wed, 16 Aug 2000 00:01:46 +0000 Subject: [PATCH] Some cosmetic changes. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@30340 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/http.xml | 48 +++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/functions/http.xml b/functions/http.xml index e801bc6ad8..415515034b 100644 --- a/functions/http.xml +++ b/functions/http.xml @@ -79,13 +79,13 @@ header ("Pragma: no-cache"); // HTTP/1.0 - - See also headers_sent - + + See also headers_sent + - + header_sent Returns true if headers have been sent @@ -99,17 +99,15 @@ header ("Pragma: no-cache"); // HTTP/1.0 - 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. + + + See also header - - See also header - - - setcookie @@ -121,15 +119,25 @@ header ("Pragma: no-cache"); // HTTP/1.0 int setcookie string name - string value - int expire - string path - string domain - int secure + string + value + + int + expire + + string + path + + string + domain + + int + secure + - setcookie defines a cookie to be sent along + Setcookie defines a cookie to be sent along with the rest of the header information. Cookies must be sent before 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 Some examples follow how to send cookies: - <function>setcookie</function> send examples + <function>Setcookie</function> send examples 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); <function>setcookie</function> delete examples setcookie ("TestCookie"); -setcookie ("TestCookie", "",time()); -setcookie ("TestCookie", "",time(), "/~rasmus/", ".utoronto.ca", 1); +setcookie ("TestCookie", "", time()); +setcookie ("TestCookie", "", time(), "/~rasmus/", ".utoronto.ca", 1);