SarkariResultess QA Bank

PHP HTTP status code set कैसे करते हैं? को debug कैसे करें?

Other 0 Views Verified
PHP HTTP status code set कैसे करते हैं? को debug कैसे करें? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

header_code(404);

header_code(404);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

http_response_code(404);

http_response_code(404);
Additional Explanation
http_response_code() response status code set/get करता है। पहले exact error message, line number और input value check करें।
Verified

status_code(404);

status_code(404);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

response.status(404);

response.status(404);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।