To allow PHP code to be executed in .html files, create a .htaccess file in the root directory of your site (your_domain/docs) with the following content:
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .phtml
You can create the .htaccess file using the file manager in the hosting control panel.