I am having trouble with displaying an image from a url. In the following code if I echo out $test I get the url of the image. However, in the current code I am trying to display the image, but the only thing that gets displayed is a small broken image in the upper left. The images I am trying to display are not located on my server.
PHP Code:
$html file_get_contents($website.$criteria); 

$dom = new DOMDocument;


$links $dom->getElementsByTagName('img');

foreach (
$links as $link){
$test $link->getAttribute('src');