Home >Backend Development >PHP Problem >How to set status code in php

How to set status code in php

藏色散人
藏色散人Original
2020-10-20 09:53:103881browse

How to set the status code in php: first open the corresponding code file; then modify the status code of the response page through the "http_response_code (404)" method.

How to set status code in php

Recommended: "PHP Video Tutorial"

php Modify the status code of the response page

Calling method:

http_response_code(404)

The above is the detailed content of How to set status code in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn