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

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

example:

```
for($i=0;$i<=10000;$i==){
    include 'function.php';
}

```

how to fix this error?