I'm trying to get the image from Google Books service, in the thumbnail. Reading the address in php via file_get_contents get all the web page of the book while I just want to get the cover image. I know that it can be done via the src tag of html img element but I need the image server side. Is there a way? Thanks

Here the code I've used:

$context = [
    'http' =&gt; [
        'method'=&gt;"GET",
        'header' =&gt; "Accept:image/png\r\nAccept-Language:it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3\r\nCache-Control:max-age=0\r\nConnection:  keep-alive\r\nUser-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:33.0) Gecko/20100101 Firefox/33.0\r\n"
     ]
];
$context = stream_context_create($context);
$result = @file_get_contents($bookThumbnail, false, $context);



Question: Are DSLRs a dying breed, making now the time to switch to a mirrorless camera system?
Answer: they said rangefinders were going to go the way of the dodo when SLRs were introduced.
They said SLRs were going away when point and shoot cameras were introduced.
They said black and white was dead when colour film was invented.
All are still with us today.