Setting HTTP Response Codes in PHP


Use the http_response_code() function to set the HTTP response code for the page.

Source Code

http_response_code(404); // Sets the response code to 404
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments