Vidyalelo
JavaScript · Q64

Sockets

Programming · JavaScript · question 64

Q64

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
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
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: