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);