I need help in embedding my website with php code

First you have to make php files like index.php, contact.php, about.php and write your php code in them and run them. Then after if you want your user to see only .html link in their browser then use .htaccess url rewriting method.