What is the purpose of the file_get_contents()?
A. To get the errors and exceptions
B. To get the client’s response
C. To get the server’s response
D. None of the mentioned
Answer: Option C
Solution(By Examveda Team)
The file_get_contents() is a PHP’s native function used to hit the URL and read the server’s response into a variable $wpt_response:Related Questions on Sockets
What does the value 2 of the WebSocket attribute Socket.readyState indicate?
A. Closed connection
B. Handshake connection
C. Unestablished connection
D. Established connection and communication is possible
Which method is used to close the WebSocket?
A. Socket.flush()
B. Socket.close()
C. Socket.Close()
D. Socket.dispose()
Join The Discussion