🙂how can I have php code inside a .htm/.html file and still have the php engine execute it?
Configure the server to process files ending with ".html" the same way it's configured to process files ending with ".php".
However you do that with your server.
Hope that was urgent enough for you.