<?php echo "my php code"; ?>
However, and depending on the server that you are using, this must be enabled. On apache2, you can edit the .htaccess file to include:
AddType application/x-httpd-php .htm .html
I added this line to the .htaccess on my website's root directory.
Voila!
Cite as:
Saad, T. "How to Enable PHP Inside HTML Pages".
Weblog entry from
Please Make A Note.
http://pleasemakeanote.blogspot.com/2010/08/how-to-enable-php-inside-html-pages.html