PHP script not working in HTML file

I assume you are trying to use php inside .html file?
Try adding .htaccess file or changing apache config with the following line:

AddHandler application/x-httpd-php .html

Leave a Comment