Zend
200-530 · Question #3660
How can you redirect a client to another page using PHP?
The correct answer is A. header('Location: /another_page.php'). See the full explanation below for the reasoning.
Question
How can you redirect a client to another page using PHP?
Options
- Aheader('Location: /another_page.php');
- Bheader('Content-Location: /another_page.php');
- Cheader('Redirect: /another_page.php');
- Dheader('Redirect: /another_page.php', 1, 302);
- Eheader('HTTP/1.1 302 /another_page.php');
How the community answered
(48 responses)- A73% (35)
- B4% (2)
- C2% (1)
- D6% (3)
- E15% (7)
Community Discussion
No community discussion yet for this question.