Hello, I tried the api but it doesn't work for me, I've already tried everything but I can't get it to work, can you help me please.
The code I use:
$data = https://api.themoviedb.org/3/movie/12?api_key=$apikey
$file = file_ get_ contents($data)
$json = json _ decode( $file , true )
$title = $json["title"]
echo $title
it doesn't give me anything back :C
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by pericopelayo
on October 29, 2022 at 7:52 PM
same here.
same problem since 2 days ago.
Edit: its seems to affect file_ get _ content requests only. my site have some requests from javascript and those are working.
Reply by ticao2 ๐ง๐ท pt-BR
on October 29, 2022 at 7:58 PM
You do not receive any response reporting an error?
Reply by pericopelayo
on October 29, 2022 at 10:11 PM
in mi case is:
Reply by ticao2 ๐ง๐ท pt-BR
on October 30, 2022 at 11:56 AM
I believe this warning is not from TMDb Servers.
See the list of TMDb server error warnings here.
https://www.themoviedb.org/documentation/api/status-codes
Most likely this error response is from your system.
I made this API Request using my Firefox browser and got the correct response.
Try making this API Request using your browser, in a new tab.
If the answer is correct, then the problem is not external.
It must be a problem with your hardware and/or software.
I see this in your API Request.
failed to open stream
Are you trying to open or access some streaming service?
Reply by pericopelayo
on October 30, 2022 at 5:14 PM
No. Iยดm trying to do a file_ get_ contents. I will ask to my hosting provider if they are blocking something. Thanks for you answer.