This is the error, i am getting
Warning: file_get_contents(https://api.themoviedb.org/3/movie/39740?api_key=522cec78237f49axxxxxxxxxxx6d1e0c834a): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Now, you may founder, what is inside that link?
That page contain this line only
{"status_code":34,"status_message":"The resource you requested could not be found."}
So, I think this is a valid page (which i can open in browser). I just want PHP to stop giving this error, if it failed to open stream.
This is my JSON code
$response = file_get_contents("https://api.themoviedb.org/3/movie/".$requestsDone."?api_key=522cec782xxxx6f6d1e0c834a");
if ($response != FALSE) {
$response = json_decode($response, true);
}
Edit: It is not duplicate of that question. That question is related to email and password, where mine is not