Serving images through PHP?
<p>I want a simple solution for serving images through php, so that I can do:</p>

<pre><code>&lt;img src="http://site.com/image.php?file=xxxx" /&gt;
</code></pre>

<p>And it will be able to display the image correctly without any issue.</p>

<p>Most of the solutions I've looked at seem to be only using .jpeg files (e.g they do imageJpeg() ). I need to be able to serve all image types, i.e .jpegs, .gifs, and .pngs as well.</p>

<p>How can I do this?</p>
