title: php get image from url
body: <p>I need to create a php file that return a JPEG image.
  I wrote this code but it doesn't work:</p>
  
  <pre><code>&lt;?php
  header('Content-type: image/jpeg;');
  $p = 'http://....file.jpeg';
  $a = file_get_contents('$p');
  echo $a;
  ?&gt;
  </code></pre>
  
  <p>What's wrong? I think that it is too simple</p>