 <p>The function <a href="http://php.net/readfile" rel="nofollow noreferrer"><code>readfile</code></a> should be faster.</p> <p>If you are using PHP as an Apache module, you can also look into <a href="http://php.net/virtual" rel="nofollow noreferrer"><code>virtual</code></a>.</p>