void header(string header[, bool replace, [int http_response_code]])
Sends a raw HTTP header.
int headers_sent(void)
Returns true if headers have already been sent, false otherwise.
bool setcookie(string name[, string value[, int expires[, string path[, string domain[, bool secure]]]]])
Sends a cookie.