nerdexam
Zend

200-550 · Question #7

Which of the following will set a 10 seconds read timeout for a stream?

The correct answer is D. stream_set_timeout($stream, 10). See the full explanation below for the reasoning.

Question

Which of the following will set a 10 seconds read timeout for a stream?

Options

  • Aini_set("default_socket_timeout", 10);
  • Bstream_read_timeout($stream, 10);
  • CSpecify the timeout as the 5th parameter to the fsockopen() function used to open a stream
  • Dstream_set_timeout($stream, 10);
  • ENone of the above

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    12% (5)
  • C
    2% (1)
  • D
    78% (32)
  • E
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice