How to implement a general Mime type correctly in PHP?
<p>If you click view,you'll open that file in browser,</p>

<p>I've tried :</p>

<pre><code>readfile('test.jpg');
</code></pre>

<p>But seems it fails in firefox.</p>
