IT FUCKING WORKS

foreach: index.php to page.html: done. Now I can go and sleep.