Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

http_response_code

with a param sets the response code, without gets it.
 //set new response code 404:
  http_response_code(404);
// print out current response code
  var_dump(http_response_code());
Source by www.php.net #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+1 =