If you want PHP interpreted in your HTML pages, you first need to make sure that you suscribe to a PHP-enabled hosting service (it is the case of most hosting offers). Hosting companies usually provide comparative tables of their different offers, with the various services available. Just find the one that suits your needs.
Then, as @Chaoley suggested, you need to make sure that the extension of your files match the settings of their web server (Apache, most probably). .html
files may not be parsed by the PHP engine: usually only PHP-specific extensions (.php
, .php5
, .php4
...) are passed to the PHP module. Your provider may or may not give you the opportunity to tweak some server settings with a .htaccess
file in the root directory of your application (or any other target directory).