1.

What will the file_get_contents() return?(a) Server’s response(b) Errors(c) Exception(d) Client’s responseI had been asked this question during an online interview.Origin of the question is Accessing the WebPagetest API in section Sockets of JavaScript

Answer»

The correct OPTION is (a) SERVER’s RESPONSE

The best explanation: 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:



Discussion

No Comment Found

Related InterviewSolutions