PHP header redirect कैसे करते हैं? इसका basic मतलब क्या है?

Other Published Updated 0 Views Verified
PHP header redirect कैसे करते हैं? इसका basic मतलब क्या है? सही विकल्प चुनें और code/solution को समझें।
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified

redirect('/login'); only in core PHP

redirect('/login'); only in core PHP
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 1
Verified Correct Answer

header('Location: /login'); exit;

header('Location: /login'); exit;
Additional Explanation
Location header के बाद exit करना script execution रोकने का common pattern है।
Sarkari Resultess
Editorial Answer 2
Verified

header->redirect('/login');

header->redirect('/login');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 3
Verified

Location('/login');

Location('/login');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 4