php include file call
<p>I need to call include file more than 1000 times inside of for loop.
After 200 or 300 times completed, I am getting following error</p>

<p><strong>Warning: include(function.php) [function.include]: failed to open stream: Too many open files in /var/www/html/test.php</strong></p>

<p>example:</p>

<pre><code>for($i=0;$i&lt;=10000;$i==){
    include 'function.php';
}
</code></pre>

<p>how to fix this error?</p>
