I\'m using file_get_contents() to access a URL.
file_get_contents(\'http://somenotrealurl.com/notrealpage\');
If the URL is not real, it r
You may add 'ignore_errors' => true to options:
$options = array(
'http' => array(
'ignore_errors' => true,
'header' => "Content-Type: application/json\r\n"
)
);
$context = stream_context_create($options);
$result = file_get_contents('http://example.com', false, $context);
In that case you will be able to read a response from the server.