To be able to handle php script in .html file , you need to add the following in the .htaccess file:
To check that the setup works you need to create the following .html file and add the following php code in it:
<head> </ head>
<? php echo "Hello world!";?>
Save the file named test.html and upload it to your web hosting account.
When writing the address http://domain.com/test.html in the browser you should see the message Hello World!