I have php version Version 4.2.2 on my host, and I wrote this quick script:
<?
$someNumber = 2;
$dir = "test/";
$file = array("test.html", "test2.html");
for ($i=0; $i< $someNumber; $i++)
{
include($dir . $file[$i]);
}
?>
When I used your code, I got a division by 0 error. So I moved the / to the directory name instead. Can you test this out this script and see if it works? Thanks.
Note: You'll have to create test/test.html and test/test2.html