I am trying to run a simple php code inside my html file. The file name is test.html. The following code is inside the file:
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>
</body>
</html>
I have also changed my .htaccess file to include a code which my service provider recommended which is: AddHandler x-httpd-php .html. But I still cannot display a simple message. Everything works fine if I change the file name to .php. But I want to keep my file name .html. I can provide more info if required.