Title: poster, not return anything
Last modified: August 30, 2016

---

# poster, not return anything

 *  Resolved [herukrayz](https://wordpress.org/support/users/herukrayz/)
 * (@herukrayz)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/poster-not-return-anything/)
 * this my script
 * $imdb_movie = imdb_connector_has_movie(“tt1185418”);
    $image_url = $imdb_movie[“
   poster”]; $image_data = file_get_contents($image_url);
 * then.. i got this error.
    PHP Warning: file_get_contents(): Filename cannot be
   empty
 * This script even working at previous version imdb connector
 * [https://wordpress.org/plugins/imdb-connector/](https://wordpress.org/plugins/imdb-connector/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * (@thaikolja)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/poster-not-return-anything/#post-6483649)
 * That’s not surprising. imdb_connector_has_movie() is a function that checks whether
   a movie with the entered IMDb ID or title exists or not. It only returns a bool,
   either true or false. Since it’s not an array and the key “poster” doesn’t exist,§
   image_url is empty. That’s why the error. Use this code:
 *     ```
       $imdb_movie = imdb_connector_get_movie("tt1185418");
       $image_url = $imdb_movie["poster"];
       echo "<img src=\"$image_url\" />";
       ```
   
 *  Thread Starter [herukrayz](https://wordpress.org/support/users/herukrayz/)
 * (@herukrayz)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/poster-not-return-anything/#post-6483653)
 * owhh, sorryy..
    i’m not expert in english T_T I got mistake when read the manual
   Thank’s for your support
 *  Plugin Author [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * (@thaikolja)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/poster-not-return-anything/#post-6483654)
 * No problem, that’s what this forum is for 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘poster, not return anything’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/imdb-connector_bac675.svg)
 * [IMDb Connector](https://wordpress.org/plugins/imdb-connector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/imdb-connector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/imdb-connector/)
 * [Active Topics](https://wordpress.org/support/plugin/imdb-connector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/imdb-connector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/imdb-connector/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/poster-not-return-anything/#post-6483654)
 * Status: resolved