nerdexam
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)
  • A
    78% (14)
  • B
    11% (2)
  • D
    6% (1)
  • E
    6% (1)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice