php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
head.c File Reference
#include <stdio.h>
#include "php.h"
#include "ext/standard/php_standard.h"
#include "ext/date/php_date.h"
#include "SAPI.h"
#include "php_main.h"
#include "head.h"
#include <time.h>
#include "php_globals.h"
#include "zend_smart_str.h"

Go to the source code of this file.

Macros

#define ILLEGAL_COOKIE_CHARACTER   "\",\", \";\", \" \", \"\\t\", \"\\r\", \"\\n\", \"\\013\", or \"\\014\""
 

Functions

 PHP_FUNCTION (header)
 
 PHP_FUNCTION (header_remove)
 
PHPAPI bool php_header (void)
 
PHPAPI zend_result php_setcookie (zend_string *name, zend_string *value, time_t expires, zend_string *path, zend_string *domain, bool secure, bool httponly, zend_string *samesite, bool url_encode)
 
 PHP_FUNCTION (setcookie)
 
 PHP_FUNCTION (setrawcookie)
 
 PHP_FUNCTION (headers_sent)
 
 PHP_FUNCTION (headers_list)
 
 PHP_FUNCTION (http_response_code)
 

Macro Definition Documentation

◆ ILLEGAL_COOKIE_CHARACTER

#define ILLEGAL_COOKIE_CHARACTER   "\",\", \";\", \" \", \"\\t\", \"\\r\", \"\\n\", \"\\013\", or \"\\014\""

Definition at line 79 of file head.c.

Function Documentation

◆ PHP_FUNCTION() [1/7]

PHP_FUNCTION ( header )

Definition at line 32 of file head.c.

◆ PHP_FUNCTION() [2/7]

PHP_FUNCTION ( header_remove )

Definition at line 53 of file head.c.

◆ PHP_FUNCTION() [3/7]

PHP_FUNCTION ( headers_list )

Definition at line 345 of file head.c.

◆ PHP_FUNCTION() [4/7]

PHP_FUNCTION ( headers_sent )

Definition at line 295 of file head.c.

◆ PHP_FUNCTION() [5/7]

PHP_FUNCTION ( http_response_code )

Definition at line 355 of file head.c.

◆ PHP_FUNCTION() [6/7]

PHP_FUNCTION ( setcookie )

Definition at line 279 of file head.c.

◆ PHP_FUNCTION() [7/7]

PHP_FUNCTION ( setrawcookie )

Definition at line 287 of file head.c.

◆ php_header()

PHPAPI bool php_header ( void )

Definition at line 70 of file head.c.

◆ php_setcookie()

PHPAPI zend_result php_setcookie ( zend_string * name,
zend_string * value,
time_t expires,
zend_string * path,
zend_string * domain,
bool secure,
bool httponly,
zend_string * samesite,
bool url_encode )

Definition at line 80 of file head.c.