php is executed in a server. You need a server that supports php language.
most servers will do that, I use 3essentials.com
They created a file .httacces or something like that that will let me write .php and .html in the same page.
To learn how to do this, you need more information. I just called them, and they did it for me
But now, I can write .php and .html programming in the same page.
Copyright 2017, July, 07