nerdexam
National_Instruments

200-500 · Question #35

What function should be used to escape command line arguments that are passed to commands executed from PHP?

The correct answer is C. escapeshellarg(). See the full explanation below for the reasoning.

Question

What function should be used to escape command line arguments that are passed to commands executed from PHP?

Options

  • Aaddslashes()
  • Bquotemeta()
  • Cescapeshellarg()
  • Descapeshellcmd()
  • Epassthru()

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    74% (17)
  • D
    17% (4)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice