Zend
200-530 · Question #3710
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
(30 responses)- A3% (1)
- B10% (3)
- C7% (2)
- D80% (24)
Community Discussion
No community discussion yet for this question.