The Movie Database Support

This is what I do to get details

$query = "Doctor%20Strange";
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$urltmdb = "https://api.themoviedb.org/3/search/movie?query=".$query."&language=en-US&api_key=XXXXXXX";
curl_setopt_array($curl, array(
  CURLOPT_URL => $urltmdb,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_POSTFIELDS => "{}",
));

but when I try to access the image value in the return array I dont get the full image link-->I receive only the image name for example:

[poster_path] => /xfWac8MTYDxujaxgPVcRD9yZaul.jpg

Thus when I try to display it shows no image at all.

Can anyone help me on this? Thanks!

2 erantzun (1(e)tik 1. orrian)

Jump to last post

Hi there,

Please consult the image documentation as it details how to build image URLs. And since you're passing along a language parameter, I'd recommend reading through this document as well.

Cheers.

Hey Travis, Cool! Thank you, I will look into it and get back if I need help.

Thanks!

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Ezarpenak

Elementu hau kalifikatu edo zerrenda batera gehitzea nahi al duzu?

Saioa hasi