Generate index.php