functional index.php file