Class ilHTTP.
More...
◆ httpResponseCode()
static ilHTTP::httpResponseCode |
( |
|
$status | ) |
|
|
staticprivate |
- Parameters
-
Definition at line 94 of file class.ilHTTP.php.
References $_SERVER, $GLOBALS, and header.
95 $protocol = (isset(
$_SERVER[
'SERVER_PROTOCOL']) ?
$_SERVER[
'SERVER_PROTOCOL'] : self::PREFIX);
96 $string = $protocol .
' ' . $status .
' ' . self::$http_codes[$status];
97 $GLOBALS[
'http_response_code'] = $status;
99 header($string,
true, $status);
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Add a drawing to the header
◆ status()
static ilHTTP::status |
( |
|
$status | ) |
|
|
static |
◆ $http_codes
◆ PREFIX
const ilHTTP::PREFIX = 'HTTP/1.1' |
The documentation for this class was generated from the following file: