项目作者: rodortega
项目描述 :
A simple PHP class that sets the appropriate header for requests (Useful for REST APIs).
高级语言: PHP
项目地址: git://github.com/rodortega/http-status-code.git
http_status_code
A simple PHP class that sets the appropriate header for requests (Useful for REST APIs).
To use:
require 'Response.php';
$Response = new Response();
$Response->setResponse(500); //sets the header to HTTP/1.1 500 Server Error: Internal Server Error