Deal of The Day! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Zend Discussions
Exam 200-710 Topic 6 Question 45 Discussion
Zend Exam 200-710 Topic 6 Question 45 Discussion
Actual exam question for Zend's 200-710 exam
Question #: 45
Topic #: 6
[All 200-710 Questions]
Which of the following will set a 10 seconds read timeout for a stream?
A
ini_set('default_socket_timeout', 10);
B
stream_read_timeout($stream, 10);
C
Specify the timeout as the 5th parameter to the fsockopen() function used to open a stream
D
stream_set_timeout($stream, 10);
E
None of the above
Show Suggested Answer
Hide Answer
Suggested Answer:
B
by
Vincenza
at
Mar 19, 2023, 11:45 PM
Limited Time Offer
25%
Off
Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Geoffrey
2 months ago
Whoa, hold up! If I can't use ini_set() to set the default socket timeout, how am I supposed to manage all my streams? This question is trickier than it seems.
upvoted
0
times
...
Lindsay
2 months ago
Personally, I'm leaning towards B. The stream_read_timeout() function seems like it would be the most direct way to set the timeout.
upvoted
0
times
Kenneth
7 days ago
Let's go with B then, it seems like the most direct way to set the timeout.
upvoted
0
times
...
Kasandra
8 days ago
I'm not sure, maybe we should double check the options.
upvoted
0
times
...
Miriam
26 days ago
I agree, stream_read_timeout() seems like the right choice.
upvoted
0
times
...
Yen
1 months ago
I think B is the correct option.
upvoted
0
times
...
...
Domitila
2 months ago
Haha, I'm going to have to rule out E. None of the above? That's a cop-out answer if I ever saw one!
upvoted
0
times
...
Maurine
2 months ago
I'm not sure about this one. I'll go with C since the fsockopen() function has a parameter for setting the timeout.
upvoted
0
times
Eleonora
29 days ago
User 3: I believe it's A) ini_set(\'default_socket_timeout\', 10)
upvoted
0
times
...
Chanel
1 months ago
User 2: I'm not sure, but I'll go with C) Specify the timeout as the 5th parameter to the fsockopen() function used to open a stream
upvoted
0
times
...
Whitley
2 months ago
User 1: I think it's D) stream_set_timeout($stream, 10)
upvoted
0
times
...
...
Maricela
3 months ago
I think D is the correct answer. The stream_set_timeout() function is specifically designed to set the read timeout for a stream.
upvoted
0
times
Britt
29 days ago
Great, thanks for confirming!
upvoted
0
times
...
Gene
1 months ago
So, the answer is D) stream_set_timeout($stream, 10).
upvoted
0
times
...
Ming
1 months ago
Yes, you are correct. stream_set_timeout() is the function to set read timeout.
upvoted
0
times
...
Martina
1 months ago
I think D is the correct answer.
upvoted
0
times
...
Man
1 months ago
Great, thanks for the clarification!
upvoted
0
times
...
Lucy
1 months ago
So, the answer is D) stream_set_timeout($stream, 10).
upvoted
0
times
...
Skye
2 months ago
Yes, you are right. stream_set_timeout() is used to set the read timeout for a stream.
upvoted
0
times
...
Susy
3 months ago
I think D is the correct answer.
upvoted
0
times
...
...
Valda
3 months ago
I'm not sure, but I think it might be A) ini_set(default_socket_timeout, 10)
upvoted
0
times
...
Buck
3 months ago
I agree with Felicidad, because stream_set_timeout() is specifically used to set a timeout for a stream
upvoted
0
times
...
Felicidad
3 months ago
I think the answer is D) stream_set_timeout($stream, 10)
upvoted
0
times
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Geoffrey
2 months agoLindsay
2 months agoKenneth
7 days agoKasandra
8 days agoMiriam
26 days agoYen
1 months agoDomitila
2 months agoMaurine
2 months agoEleonora
29 days agoChanel
1 months agoWhitley
2 months agoMaricela
3 months agoBritt
29 days agoGene
1 months agoMing
1 months agoMartina
1 months agoMan
1 months agoLucy
1 months agoSkye
2 months agoSusy
3 months agoValda
3 months agoBuck
3 months agoFelicidad
3 months ago