Change the file extension from
NOTE: You can't execute php code in
Also one more thing, you need to change both file names. because you are changing index.html to index.php and another file with same name is already there.
so do this.
<?php echo 'test'; ?>
<html> <body> <?php include 'index_inc.php'; ?> <h1>Welcome to my home page!</h1> </body> </html>