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
Kan du ikke finde en film eller TV-serie? Log in og opret den.
Want to rate or add this item to a list?
Ikke medlem?
Svar af pericopelayo
d. 29 oktober 2022 kl. 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.
Svar af ticao2 🇧🇷 pt-BR
d. 29 oktober 2022 kl. 7:58 PM
You do not receive any response reporting an error?
Svar af pericopelayo
d. 29 oktober 2022 kl. 10:11 PM
in mi case is:
Svar af ticao2 🇧🇷 pt-BR
d. 30 oktober 2022 kl. 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?
Svar af pericopelayo
d. 30 oktober 2022 kl. 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.