write index.php