Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php set http status header

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: #php #set #http #status #header
ADD COMMENT
Topic
Name
3+2 =