hello, i need help to scrape the image of the movies from http://www.yaske.to/es/pelicula/0003735/ver-you-39-re-next-online.html

i have this but not works fine:

$jm_anime_imagen = cut_str($pagina, '<meta property="og:image" content="', '" />'); $imagen = str_replace("http://yaske.to/upload/images/", "", $jm_anime_imagen); copy($jm_anime_imagen, 'imagen/'.$imagen);
echo '<img src="http://www.masfriv.com/imagen/'.$imagen.'" width="148" heigth="220" />';

Hello, i have the image link in $jm_anime_imagen, but how to save this image in one folder of my site?

$jm_anime_imagen = cut_str($pagina, '<meta property="og:image" content="', '" />');
echo $jm_anime_imagen;


i have this function for save the image, but i need save the image with the content of $jm_anime_titulo.

function cache_image($jm_anime_imagen){
    //replace with your cache directory
    $image_path = 'imagen/';
    //get the name of the file
    $exploded_image_url = explode("/",$jm_anime_imagen);
    $image_filename = end($exploded_image_url);
    $exploded_image_filename = explode(".",$image_filename);
    $extension = end($exploded_image_filename);
    //make sure its an image
    //get the remote image
    $image_to_fetch = file_get_contents($jm_anime_imagen);
    //save it
    $local_image_file = fopen($image_path.$image_filename, 'w+');
    fwrite($local_image_file, $image_to_fetch);