HttpResponse::status

(PECL pecl_http >= 0.12.0)

HttpResponse::statusSend HTTP response status

Description

static bool HttpResponse::status ( int $status )

This function is an alias of: http_send_status().

[an error occurred while processing the directive]

Коментарии

For those with the older versions of PHP you can still set the response code by using the header function. For example:

  //HttpResponse::status(403);
  header("HTTP/1.0 403 Forbidden");
2014-10-09 12:02:31
http://php5.kiev.ua/manual/ru/httpresponse.status.html

    Поддержать сайт на родительском проекте КГБ