National_Instruments
200-500 · Question #105
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
(18 responses)- A78% (14)
- B11% (2)
- D6% (1)
- E6% (1)
Community Discussion
No community discussion yet for this question.