title: Broken image with readfile and file_get_contents
body: <p>I'm trying to use a function in order to get this working:</p>
  
  <pre><code>&lt;img src='login.php?image=ind_legend.jpg'&gt;
  </code></pre>
  
  <p>But I can't pass through the function to place the image. I went back a couple of steps and tried only this part of the code:</p>
  
  <pre><code>&lt;?php
  $file = "http://localhost/sales/test.jpg";
  header('Content-type: image/jpeg');
  readfile($file);
  ?&gt;
  </code></pre>
  
  <p>or using this function:</p>
  
  <pre><code>echo file_get_contents($source);
  </code></pre>
  
  <p>but the fact is that the only thing I get is a broken image cross (IE) or nothing in Firefox.</p>
  
  <p>I would appreciate any suggestions</p>
  
  <p>Thanks in advance</p>