Cannot create handle for image after obtaining source code
<p>I am trying to create a small experimental script for obtaining comic strips from web-comic sites using php. The site that I am playing with is <a href="http://www.pidjin.net/" rel="nofollow">Fredo and Pidjin</a>. Here is the code that I have written so far: </p>

<pre><code>&lt;?php

        require_once "../shdp/simple_html_dom.php";

        $next = "http://www.pidjin.net/2012/08/28/of-my-own/";
        $html = file_get_html($next);

        $imageList = $html-&gt;find('div[class=episode] p img');

        for($iii=0; $iii&lt;count($imageList); $iii++){
            $storage[$iii] = $imageList[$iii]-&gt;src;

        }

        $img = file_get_contents($storage[0]);
        $img = imagecreatefromstring($img);

        header("Content-type: image/png");
        $something = imagepng($img);
?&gt;
</code></pre>

<p>For scraping the html, I am using the Simple HTML DOM parser. </p>

<p><strong>This is what I'm trying to do:</strong> Get the src of the image and assign it to a handle. Subsequently find it for all the comic panels on the page and use imagecopy to make one strip that can be saved to the computer. The code, however, is in the preliminary stages and I have not got to the imagecopy part yet.</p>

<p><strong>Problem</strong>: While imagepng(...) outputs the file on the browser, I am not able to get a $src handle (so to speak) on the image to use in imagecopy.</p>

<p>Thanks in advance.</p>
