title: Displaying image from a folder
body: <p>image displays in the browser whrn the following code is used.But when the code is used inside html,the image does not appear instead a small box appear.</p>
  
  <pre><code>&lt;?php
  header('Content-Type: image/jpeg');
  readfile('http://localhost/picture013.jpg');
  ?&gt;
  </code></pre>
  
  <p>for example when i use no image is displayed.</p>
  
  <pre><code> &lt;html&gt;
  &lt;body&gt;
      &lt;?php
      header('Content-Type: image/jpeg');
      readfile('http://localhost/picture013.jpg');
      ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>in short i wanted to display all the images from a folder.</p>